In python I had:
response = s.get(url, allow_redirects=False, cookies=cookies, headers=headers) soup = BeautifulSoup(response.text, \'lxml\') reg_cart = soup.