Custom cookies usage via ScrapingAnt API. Where to get and how to pass them as a parameter.
You can pass custom cookies to the target webpages.
ScrapingAnt API only handles the name and value of custom cookies. If you want to set multiple cookies separate them with
Cookies should be passed in the following format:
If you are using
GET, don't forget to urlencode cookies param, so for example above it will look like the following:
POST request you can just pass the cookie string as is. For example:
The cookies from the target website will be returned in the
cookies response property with the same format, so you can just get cookies from the response and then reuse them in new requests.
We're highly recommending chaining the scraping requests with a cookies.
For example: to grab the cookies from the main/landing page of the target site and then pass those cookies while scraping of other pages.