python 安装requests库

首先从git 下载requests

解压,放入python安装目录,选中requests库,shfit鼠标右键,进入CMD,输入python setup.py install ,运行结束后,输入import requests检测是否安装成功

若为这样,即安装成功。

同样,安装 从HTML中提取数据的beautifulsoup 方法类似;

相关文档: 

  requests: http://docs.python-requests.org/zh_CN/latest/user/quickstart.html

  beautifulsoup: https://www.crummy.com/software/BeautifulSoup/bs4/doc/index.zh.html

原文地址:https://www.cnblogs.com/bigman-bugman/p/7885589.html