{"repo":"borys25ol/amazon-location-cookies-service","free":true,"listed":false,"github":"https://github.com/borys25ol/amazon-location-cookies-service","clone":"git clone https://github.com/borys25ol/amazon-location-cookies-service.git","description":"Self-hosted API that extracts Amazon location and delivery-country session cookies, solving the AWS WAF challenge with a headless browser","language":"Python","stars":47,"topics":["scrapy","fastapi","docker","amazon","aws-waf","cookies","playwright","python","scrapyrt","web-scraping"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"Amazon Location Cookies ==================== Description This service gets Amazon cookies that set a delivery location. You give it a zip code or a delivery country. It gives you the cookies. Amazon shows different content for different locations. Amazon selects the location from the IP address of the client. If you use proxy servers in other countries, these cookies set the location that Amazon uses. These sites and locations are tested: Country code Amazon site Example zip code -------------- ----------------- ------------------ US amazon.com 30322 UK , GB amazon.co.uk E1 6AN DE amazon.de 80686 ES amazon.es 28010 IT amazon.it 20162 FR amazon.fr 75001 The service can also set a delivery country that is different from the country of the site. For example, it can set delivery from the US site to France. You can use all the countries that Amazon delivers to. How the service operates ------------------------ For each location, the service sends the same three requests as the \"Deliver to\" control of Amazon: 1. GET / — the service reads the glowValidationToken value from the HTML. 2. GET /portal-migration/hz/glow/get-rendered-address-selections — the service reads the CSRF TOKEN value. 3. POST /portal-migration/hz/glow/address-change — the service sets the location. Then it keeps the cookies from the response. How the service gets through the AWS WAF challenge Amazon protects each site with an AWS WAF Bot Control challenge. A usual HTTP client cannot complete step 1. Amazon sends ","default_branch":null,"files":null,"tree":[],"storefront":"/r/borys25ol","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/borys25ol/amazon-location-cookies-service/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}