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

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.

主站蜘蛛池模板: 嫩江县| 布拖县| 福清市| 鄄城县| 库尔勒市| 宾阳县| 新余市| 资阳市| 鄂尔多斯市| 治多县| 讷河市| 平果县| 德保县| 汝南县| 横山县| 和田县| 吉木萨尔县| 塔城市| 漠河县| 河间市| 阳山县| 漳州市| 青阳县| 天镇县| 进贤县| 蒙自县| 宜宾市| 军事| 乌拉特后旗| 盱眙县| 山西省| 昭觉县| 紫云| 民县| 且末县| 双桥区| 阿拉善盟| 富顺县| 西宁市| 崇明县| 辰溪县|