Request 是一个简答优雅的 python HTTP 库,相较于 python 标准库中的 urllib 和 urllib2 的库,Requests 更加的便于理解使用, 本篇文章将带你详细了解 Requests 的基本用法。
Requests 模块
安装
pip install requests
注意:在 python 3.8 中的安装包中默认安装了 pip 工具,只需要我们配置一下环境变量即可
PAHT = 'C:\Users\Administrator\AppData\Local\Programs\Python\Python38\Scripts'