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

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.

主站蜘蛛池模板: 北流市| 莱州市| 克拉玛依市| 綦江县| 漳平市| 江都市| 滦南县| 册亨县| 湖北省| 祁门县| 布拖县| 无棣县| 丘北县| 南丰县| 庄河市| 上思县| 凉山| 偃师市| 马公市| 铜鼓县| 罗定市| 内黄县| 临湘市| 蓬溪县| 精河县| 昌吉市| 平罗县| 阜阳市| 襄汾县| 怀来县| 平湖市| 黄山市| 镶黄旗| 安国市| 延寿县| 新疆| 建阳市| 金乡县| 兴国县| 如东县| 丰县|