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

Зміст курсу

Web Scraping with Python (res)

Web Scraping with Python (res)

1. HTML Files and DevTools
2. Beautiful Soup
3. CSS Selectors/XPaths
4. Tables

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()

Натисніть або перетягніть елементи та заповніть пропуски

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

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

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

Виберіть кілька правильних відповідей

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!.

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

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

Виберіть кілька правильних відповідей

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 4. Розділ 4
some-alt