How to extract HTTP response body from a Python requests call?
Your code is correct. I tested:
r = requests.get("http://www.google.com")
print(r.content)
And it returned plenty of content. Check the url, try "http://www.google.com". Cheers!
You can try this method:
import requests
response = requests.get("http://www.google.com")
response.raise_for_status()
data = response.json()
print(data)