- 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.
推薦閱讀
- HTML5 Mobile Development Cookbook
- 3D少兒游戲編程(原書第2版)
- 大學(xué)計(jì)算機(jī)基礎(chǔ)(第2版)(微課版)
- MongoDB權(quán)威指南(第3版)
- Mastering Apache Maven 3
- 微信小程序項(xiàng)目開發(fā)實(shí)戰(zhàn)
- Learning JavaScript Data Structures and Algorithms
- Active Directory with PowerShell
- Java面向?qū)ο蟪绦蛟O(shè)計(jì)
- Java網(wǎng)絡(luò)編程實(shí)戰(zhàn)
- App Inventor創(chuàng)意趣味編程進(jìn)階
- Android應(yīng)用開發(fā)深入學(xué)習(xí)實(shí)錄
- 青少年學(xué)Python(第2冊(cè))
- 啊哈C語言!:邏輯的挑戰(zhàn)(修訂版)
- Pandas 1.x Cookbook