How do I scrape an Amazon page with a delivery address?

Viewed 26

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):

  1. I send a GET request to https://www.amazon.co.uk and search for the anti-csrftoken-a2z field in the response + saving the cookies.

  2. I send a POST request to https://www.amazon.fr/portal-migration/hz/glow/address-change?actionSource=glow with 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?

0 Answers
Related