- Mastering Concurrency in Python
- Quan Nguyen
- 157字
- 2021-06-10 19:24:08
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.
推薦閱讀
- Dynamics 365 for Finance and Operations Development Cookbook(Fourth Edition)
- SPSS數據挖掘與案例分析應用實踐
- Node.js+Webpack開發實戰
- Getting Started with React
- LabVIEW Graphical Programming Cookbook
- Python從小白到大牛
- Interactive Data Visualization with Python
- Java入門很輕松(微課超值版)
- Mastering Natural Language Processing with Python
- iOS應用逆向工程(第2版)
- Learning Data Mining with R
- 搞定J2EE:Struts+Spring+Hibernate整合詳解與典型案例
- Django 3.0應用開發詳解
- Distributed Computing in Java 9
- 現代C:概念剖析和編程實踐