Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Access the Response Methods and Attributes in python

import requests
 
url = 'https://httpbin.org/get'
response = requests.get(url)
 
print(response.text) # access response data atributes and descriptors
print(response.json()) # access response methods
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Access #Response #Methods #Attributes #python
ADD COMMENT
Topic
Name
6+6 =