- 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.
推薦閱讀
- Learning RxJava
- Dependency Injection in .NET Core 2.0
- RTC程序設計:實時音視頻權威指南
- QGIS:Becoming a GIS Power User
- D3.js 4.x Data Visualization(Third Edition)
- Unreal Engine 4 Shaders and Effects Cookbook
- 領域驅動設計:軟件核心復雜性應對之道(修訂版)
- 西門子S7-200 SMART PLC編程從入門到實踐
- C#開發案例精粹
- Mastering Git
- INSTANT Silverlight 5 Animation
- Qt 4開發實踐
- Sitecore Cookbook for Developers
- Dart:Scalable Application Development
- HTML5 and CSS3:Building Responsive Websites