Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: The BeautifulSoup Object | Decoding HTML with Beautiful Soup
Web Scraping with Python
course content

Course Content

Web Scraping with Python

Web Scraping with Python

1. Getting Acquainted with HTML
2. Decoding HTML with Beautiful Soup
3. Working with Element Attributes in Beautiful Soup

book
Challenge: The BeautifulSoup Object

Task
test

Swipe to begin your solution

Print the first h1 of the page tag using BeautifulSoup:

  1. Import the BeautifulSoup from bs4.
  2. Create the BeautifulSoup object and assign it to the variable soup.
  3. Access the first <h1> tag using the soup variable and print its content.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 2. Chapter 3
toggle bottom row

book
Challenge: The BeautifulSoup Object

Task
test

Swipe to begin your solution

Print the first h1 of the page tag using BeautifulSoup:

  1. Import the BeautifulSoup from bs4.
  2. Create the BeautifulSoup object and assign it to the variable soup.
  3. Access the first <h1> tag using the soup variable and print its content.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 2. Chapter 3
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt