request模块发送简单的请求

response = requests.get(url)
response的常见用法
response.text
response.content
response.status_code
response.request.headers
response.headers
例如:我们请求百度
python爬虫学习之request常见用法

结果如下:
python爬虫学习之request常见用法
初步认识request的一些简单作用

相关文章: