Course Content
Web Scraping with Python
Web Scraping with Python
Challenge 1
Task
Print the first h1
of the page tag using BeautifulSoup
:
- Import the
BeautifulSoup
frombs4
. - Create the
BeautifulSoup
object and assign it to the variablesoup
. - Access the first
<h1>
tag using the soup variable and print its content.
Everything was clear?
Section 2. Chapter 3