Note that this site is in currently in version 1.0.0-alpha.   Some functionality may be limited.


The requests module or requests library allows users to make requests to web pages. It is a useful tool for web scraping, and though it’s relatively easy to get started, the learning curve can be steep. To use requests, import the module into your script, then set up a response object. In the parenthesis, include the URL of the webpage you want to scrape, enclosed by single quotes.

import requests
x = requests.get('<websiteURL>')


official docs
Read the official docs for the requests module.


Follow the quickstart tutorial on the official docs.

Lessons referring to this term