Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Text from HTML Elements | Working with Element Attributes in Beautiful Soup
Web Scraping with Python

bookChallenge: Text from HTML Elements

Task

Swipe to start coding

You are given a web page. Complete the following tasks:

  1. Print all the attributes of all the <a> elements.

  2. Print all the text of all the <p> elements.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 4
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

Awesome!

Completion rate improved to 4.35

bookChallenge: Text from HTML Elements

Swipe to show menu

Task

Swipe to start coding

You are given a web page. Complete the following tasks:

  1. Print all the attributes of all the <a> elements.

  2. Print all the text of all the <p> elements.

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!

close

Awesome!

Completion rate improved to 4.35
SectionΒ 3. ChapterΒ 4
single

single

some-alt