September 2026
1051 pages
35h 4m
English
The third-party requests module enables you to access resources on the internet via HTTP and enjoys great popularity. It particularly impresses with its ease of use and can be installed via the conda and pip package managers:
$ conda install requests$ pip install requests
The online documentation for requests can be found at requests.readthedocs.io.
After the module is imported, it provides the get and post functions that can be used to send respective HTTP requests to a web server:
>>> import requests>>> r_get = requests.get("https://www.python-book.com")>>> r_post = requests.post("https://www.python-book.com")
The requests are executed directly by calling get or
Read now
Unlock full access