Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Access the Response Methods and Attributes in python Get the HTML of the page

import requests
 
url = 'http://httpbin.org'
response = requests.get(url)
 
print(response.text) # get content as a string
print(response.content) # get content as bytes
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Access #Response #Methods #Attributes #python #Get #HTML #page
ADD COMMENT
Topic
Name
3+8 =