Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
The Requests Library | Automating Data Collection from Web Sources
Automating Data Collection from Web Sources
course content

Conteúdo do Curso

Automating Data Collection from Web Sources

bookThe Requests Library

The requests library is a popular Python library for making HTTP requests. It allows you to send HTTP requests to a website's server and retrieve the server's response.

In the context of web scraping, the requests library can be used to send an HTTP request to a website's server to retrieve the HTML content of a webpage. This is often the first step in the web scraping process, as the HTML content contains all the data that you want to extract.

Tarefa
test

Swipe to show code editor

  1. Import the requests library.
  2. Use the requests library to retrieve the content of the website (url).
  3. Save the text (the .text attribute) in an html variable.

Once you've completed this task, click the button above the code to check your solution.

Mark tasks as Completed
Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

The requests library is a popular Python library for making HTTP requests. It allows you to send HTTP requests to a website's server and retrieve the server's response.

In the context of web scraping, the requests library can be used to send an HTTP request to a website's server to retrieve the HTML content of a webpage. This is often the first step in the web scraping process, as the HTML content contains all the data that you want to extract.

Tarefa
test

Swipe to show code editor

  1. Import the requests library.
  2. Use the requests library to retrieve the content of the website (url).
  3. Save the text (the .text attribute) in an html variable.

Once you've completed this task, click the button above the code to check your solution.

Mark tasks as Completed
Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Seção 1. Capítulo 2
AVAILABLE TO ULTIMATE ONLY
We're sorry to hear that something went wrong. What happened?
some-alt