用requests的get方法获取百度一下的请求
导入相关的包
import requests
import time
import re
url = ‘https://www.baidu.com’
headers = {
‘Accept-Encoding’: ‘gzip, deflate, br’,
‘Accept-Language’: ‘zh-CN,zh;q=0.9’,
‘Cache-Control’: ‘max-age=0’,
‘Con...
原创
2019-03-02 10:32:28 ·
2826 阅读 ·
1 评论