SHARE
TWEET

Untitled

a guest Aug 25th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def URLGen(model, size):
  2.     baseSize = 580
  3.     shoeSize = int(size) - 6.5
  4.     shoeSize = shoeSize * 20
  5.     rawSize = shoeSize + baseSize
  6.     shoeSizeCode = int(rawSize)
  7.     URL = "https://www.adidas.it/" + str(model) + ".html?forceSelSize=" + str(model) + "_" + str(shoeSizeCode)
  8.     return URL
  9. model = input("Model #")
  10. size = input("Size: ")
  11.  
  12. URL = URLGen(model, size)
  13. print(str(URL))
  14.  
  15.  
  16. import requests
  17. payload = {'ei': size}
  18. r = requests.get('https://www.res-x.com/ws/r2/Resonance.aspx?appid=adidaswebit&tk=67828056663926766&ss=30778966663926766&sg=1&pg=77239066137146766&vr=4.2x&bx=false&sc=&ev=size_op&ei=44&qty=&tr=&cv30=&cv31=PRODUCTION&ur=https%3A//www.adidas.it/scarpe-ozweego/EE6999.html&plk=true%7C%7Ctrue;&rf=', params=payload)
  19. print(r.ok)
  20.  
  21. payload1 = {"product_id":"EE6999","quantity":1,"product_variation_sku":"EE6999_650","productId":"EE6999_650","size":"44","displaySize":"44","captchaResponse":""}
  22. r1 = requests.post('https://www.adidas.it/api/cart_items', params=payload1)
  23. print(r1.status_code)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top