import requests
headers = { "headers header file"}
URL = 'http://www.baidu.com/'
HTML = requests.get (URL, headers = headers)
html.encoding = 'GBK' # converted into the format of the site
print (html.text)
See detailed usage
↓↓↓↓↓↓↓↓↓↓↓↓↓↓
import requests
headers = { "headers header file"}
URL = 'http://www.baidu.com/'
HTML = requests.get (URL, headers = headers)
html.encoding = 'GBK' # converted into the format of the site
print (html.text)
See detailed usage
↓↓↓↓↓↓↓↓↓↓↓↓↓↓