Generate 2 specific cookies with a Python Script

Completed Posted 6 years ago Paid on delivery
Completed Paid on delivery

I have built a program that puts items (such as a shoe) from the Adidas website into a cart. It basically allows the user to cart an item within a second. Recently, Adidas has updated their website and there have been some changes. One of these changes has to do with carting an item. Previously, one could get the cookies associated with a cart through one simple request like the one below:

[url removed, login to view]("[url removed, login to view]", data={"product_id":"BZ0219","quantity":1,"product_variation_sku":"BZ0219_620"),"size":None,"recipe":None,"invalidFields":[],"isValidating":False,"clientCaptchaResponse":clientCaptchaResponse}, verify=False, headers=headers.ResumeLogin_headers)

Now, after the changes to the website, 2 specific cookies are required to cart an item (Cookies 1: _abck, Cookies 2: bm_sz). Both cookies are required to cart an item, and they are linked. The cookies are generated through a post request to "[url removed, login to view]" and can be found in the response headers. The only problem is that the correct cookie is only generated when the request posts the correct data. The data that is posted is in json form and has the key "sensor_data" but I don't know how to generate, or get its value. I think that the sensor_data is usually generated by the browser (some js probably) but I need to generate this in python. The data needs to be generated quickly and can not require a lot of computing power (if possible, preferably through network requests)

JavaScript Programming Python Software Architecture Software Development

Project ID: #16316911

About the project

3 proposals Remote project Active 6 years ago

Awarded to:

alex2018cs

Interesting Project, I would love to do this job, would you please allow me to work on this project. I check how it is generating the required cookies. please let me handle this interesting to crack the code. Thanks a More

$155 USD in 3 days
(3 Reviews)
2.5

3 freelancers are bidding on average $149 for this job

tutorsonlinehub

Lets chat and discuss about the work and price. No need to pay anything upfront first check the work and if you happy with work then pay me. You can pay me lowest price. 12 Year Experience in C, C++ , JAVA, Pyth More

$136 USD in 3 days
(6 Reviews)
2.5