Kursinnhold
Web Scraping with Python
Web Scraping with Python
3. Working with Element Attributes in Beautiful Soup
Challenge: Text from HTML Elements
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 4
Challenge: Text from HTML Elements
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 4