Kursusindhold
Web Scraping with Python
Web Scraping with Python
3. Working with Element Attributes in Beautiful Soup
Challenge: Text from HTML Elements
Opgave
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 alt klart?
Tak for dine kommentarer!
Sektion 3. Kapitel 4
Challenge: Text from HTML Elements
Opgave
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 alt klart?
Tak for dine kommentarer!
Sektion 3. Kapitel 4