Generate 2 specific cookies with a Python Script

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)

Skills: Javascript, Programming, Python, Software Architecture, Software Development

See more: python requests session set cookie, python requests get session id, python cookies requests, python session example, cookies in python tutorial, python requests session example, python session cookies, python set-cookie header, python script generate equations, python script inventory, python script modify html, python script csv tab, python script harvast email, python script crawl, python script city

About the Employer:
( 1 review ) Zug, Switzerland

Project ID: #16316911

Awarded to:


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)

3 freelancers are bidding on average $149 for this job


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)
$155 USD in 3 days
(0 Reviews)