Hello,
I am trying to extract the JSON returned by an XHR request. The “API” requires the refer to be correct, so its not as easy as copying the request parameters. What’s the best way?
Thank you
Hello,
I am trying to extract the JSON returned by an XHR request. The “API” requires the refer to be correct, so its not as easy as copying the request parameters. What’s the best way?
Thank you
You can just send them as HTTP header.
–Philipp
Hello,
Thank you. What I am actually trying to do is when I load a URL with Selenium like this one:
https://www.harrods.com/en-us/shopping/beauty?icid=megamenu_shop_beauty&pageindex=2
It is calling a XHR request:
https://www.harrods.com/api/commerce/v1/listing/beauty?icid=megamenu_shop_beauty&pageindex=2
No matter how much I try to sync cookies and requests I cant get the resulting JSON directly. So my hope was to load it via Selenium and then use JS or so to extract the JSON.
Is that possible?
Thank you
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.