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!
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!