Forum Discussion
DougHenning1
3 years agoCommunity Manager
Is the file you're downloading JSON? If not then you'll get an error with those JSON commands. You can access the body of the response with "r.content" or "r.text" depending on the file type.
r = requests.get(
request_str,
headers = headers
)
print(r.content)
------------------------------
Doug Henning
------------------------------
r = requests.get(
request_str,
headers = headers
)
print(r.content)
------------------------------
Doug Henning
------------------------------
DFDK
3 years agoQrew Member