Challenge: The BeautifulSoup Object
Task
Swipe to start coding
Print the first h1 of the page tag using BeautifulSoup:
- Import the
BeautifulSoupfrombs4. - Create the
BeautifulSoupobject and assign it to the variablesoup. - Access the first
<h1>tag using thesoupvariable and print its content.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 3
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 4.35
Challenge: The BeautifulSoup Object
Swipe to show menu
Task
Swipe to start coding
Print the first h1 of the page tag using BeautifulSoup:
- Import the
BeautifulSoupfrombs4. - Create the
BeautifulSoupobject and assign it to the variablesoup. - Access the first
<h1>tag using thesoupvariable and print its content.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 3
single