Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Challenge | Tables
Web Scraping with Python

bookChallenge

Let’s check how well we can scrape the data from websites!

You have the following page you need to scrape the data from. Take a look at it and see which information contains. Firstly, we should access the content of the page.

question-icon

Fill gaps to see the HTML code of your page:

from urllib.request import

url = "https://codefinity-content-media.s3.eu-west-1.amazonaws.com/18a4e428-1a0f-44c2-a8ad-244cd9c7985e/final.html"
page =
(url)
html = page.
().decode()

Click or drag`n`drop items and fill in the blanks

Let’s continue. We can already get the HTML structure of the page.

question mark

To iterate through all the HTML elements, we can use libraries:

Select the correct answer

The next step for working with the data is creating the BeautifulSoup object.

question-icon

Fill gaps to create the BeautifulSoup object:

soup =(html, ".")

Let's scrap the table!.

question mark

To iterate through all the HTML elements, we can use libraries:

Select the correct answer

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 4. Hoofdstuk 4

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

Suggested prompts:

Stel mij vragen over dit onderwerp

Vat dit hoofdstuk samen

Toon voorbeelden uit de praktijk

Awesome!

Completion rate improved to 4.76

bookChallenge

Veeg om het menu te tonen

Let’s check how well we can scrape the data from websites!

You have the following page you need to scrape the data from. Take a look at it and see which information contains. Firstly, we should access the content of the page.

question-icon

Fill gaps to see the HTML code of your page:

from urllib.request import

url = "https://codefinity-content-media.s3.eu-west-1.amazonaws.com/18a4e428-1a0f-44c2-a8ad-244cd9c7985e/final.html"
page =
(url)
html = page.
().decode()

Click or drag`n`drop items and fill in the blanks

Let’s continue. We can already get the HTML structure of the page.

question mark

To iterate through all the HTML elements, we can use libraries:

Select the correct answer

The next step for working with the data is creating the BeautifulSoup object.

question-icon

Fill gaps to create the BeautifulSoup object:

soup =(html, ".")

Let's scrap the table!.

question mark

To iterate through all the HTML elements, we can use libraries:

Select the correct answer

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 4. Hoofdstuk 4
some-alt