Answers for "python request response json format"

0

python request response json format

# import requests module
import requests
 
# Making a get request
response = requests.get('https://api.github.com')
 
# print response
print(response)
 
# print json content
print(response.json())
Posted by: Guest on January-17-2022
0

requests dump response as json

response. json() returns a JSON object of the result (if the result was written in JSON format, if not it raises an error)
Posted by: Guest on May-05-2021

Code answers related to "python request response json format"

Python Answers by Framework

Browse Popular Code Answers by Language