Contents
–– coding: utf-8 ––
“””
Created on Fri Dec 13 22:26:18 2019
https://2.python-requests.org//pl/latest/user/quickstart.html
@author: token
“””
libs
import requests
strUrlAddress = ‘https://amazon.com’
get all url html data as text
requests.get(strUrlAddress).text
test
a = requests.get(strUrlAddress)
return html data
a.text
return encoding
a.encoding
json with server data , text lenthetc., meta, length
a.headers
a.cookies
response for example 503
a.status_code
response history
a.history