3

Is there a way to retrieve the XHR response data with Python or Selenium WebDriver? Right now I can only view the XHR response data through the 'Network' tab in the 'Inspect' tool in the browser. What I have currently :

url = 'url'
response = requests.get(url)
json_value = response.text
print(json_value)

But this returns 'Please contact the site administrator.'. Just wondering if there is a workaround with Selenium to retrieve XHR response?

noobprogrammer
  • 109
  • 1
  • 1
  • 6

0 Answers0