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

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.

主站蜘蛛池模板: 通化县| 太湖县| 磴口县| 桦甸市| 汝阳县| 利津县| 锡林郭勒盟| 双牌县| 将乐县| 葵青区| 平顶山市| 马山县| 武邑县| 岑溪市| 沙河市| 金寨县| 崇州市| 平乐县| 六枝特区| 石楼县| 华容县| 渝中区| 宁都县| 德安县| 郸城县| 宜君县| 布尔津县| 葫芦岛市| 新干县| 徐州市| 彰武县| 全椒县| 汨罗市| 绥中县| 贵德县| 琼结县| 平武县| 资中县| 静乐县| 岗巴县| 睢宁县|