Kursinnehåll
Web Scraping with Python
Web Scraping with Python
3. Working with Element Attributes in Beautiful Soup
Challenge: Text from HTML Elements
Uppgift
Swipe to start coding
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.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 3. Kapitel 4
Challenge: Text from HTML Elements
Uppgift
Swipe to start coding
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.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 3. Kapitel 4