I am working on a project around Amazon scraping. And i=I have some difficulties when dealing with zip-code and country location.
I want to know how can scrape an Amazon page with a shipping address setup!
This is what I came through (BTW all the requests are using the same User-Agent, and I am using postman):
I send a GET request to
https://www.amazon.co.ukand search for theanti-csrftoken-a2zfield in the response + saving the cookies.I send a POST request to
https://www.amazon.fr/portal-migration/hz/glow/address-change?actionSource=glowwith the following body:
{
"locationType": "LOCATION_INPUT",
"zipCode": "E1 7Ap", // ZIP_CODE
"storeContext": "generic",
"deviceType": "web",
"pageType": "Gateway",
"actionSource": "glow"
}
and then retrieve the cookies.
In theory this should be it. BUT ! Whenever I try the second step, I just get nothing :(
Can someone give me a hint or maybe a new idea?