I am trying to scrape a shopping website which shows pricing in different currency.
There is an drop down box to choose a currency type which calls the following line http://www.xxxx.com/find/setCurrency.jsp?code=INR
after clicking it redirects to its parent page. If I clear the cookie the prices are are back in USD
I am working with cURL
in PHP
and simple_html_dom
to scrape the products. How can I find which cookie is responsible for the action and how can I use cookies in cURL
You can use a Goolge Chrome extension Cookie Inspector to view add delete cookies.
To find the one that is responsible for currency open that site, clear all cookies using the inspector, select the currency and see what cookie is set now.
Hope this helps
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.