官术网_书友最值得收藏!

The requests module

The requests module allows its users to make and send HTTP request methods. In the applications that we will be considering, it is mainly used to make contact with the server of the web pages we want to extract data from and obtain the response for the server.

According to the official documentation of the module, the use of Python 3 is highly recommended over Python 2 for requests.

To install the module on your computer, run the following:

pip install requests

You should use this code if you are using pip as your package manager. If, however, you are using Anaconda instead, simply use the following:

conda install requests

These commands should install requests and any other required dependencies (idna, certifi, urllib3, and so on) for you if your system does not have those already. After this, run import requests in a Python interpreter to confirm that the module has been installed successfully.

主站蜘蛛池模板: 鹤峰县| 静安区| 雷州市| 通辽市| 临高县| 九寨沟县| 陵川县| 宝鸡市| 郯城县| 西昌市| 武冈市| 阳山县| 故城县| 古丈县| 乌什县| 彝良县| 当涂县| 合川市| 蒙城县| 含山县| 和平区| 来宾市| 营口市| 安吉县| 芒康县| 灵丘县| 石台县| 团风县| 谢通门县| 兰溪市| 洛阳市| 中山市| 永寿县| 尚志市| 洛南县| 吕梁市| 鲜城| 鄂尔多斯市| 长沙市| 疏勒县| 南川市|