Course Content
Web Scraping with Python
Web Scraping with Python
Challenge 3: Text from HTML Elements
Task
Swipe to show code editor
You are given a web page. Complete the following tasks:
-
Print all the attributes of all the
<a>
elements. -
Print all the text of all the
<p>
elements.
Solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 3. Chapter 4
Challenge 3: Text from HTML Elements
Task
Swipe to show code editor
You are given a web page. Complete the following tasks:
-
Print all the attributes of all the
<a>
elements. -
Print all the text of all the
<p>
elements.
Solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 3. Chapter 4
Switch to desktop for real-world practiceContinue from where you are using one of the options below