Kursinhalt
Web Scraping mit Python
Web Scraping mit Python
3. Arbeiten mit Elementattributen in Beautiful Soup
Herausforderung: Das BeautifulSoup-Objekt
Aufgabe
Swipe to start coding
Gib das erste h1
des page-Tags mithilfe von BeautifulSoup
aus:
- Importiere
BeautifulSoup
ausbs4
. - Erstelle das
BeautifulSoup
Objekt und weise es der Variablesoup
zu. - Greife mit der Variable
<h1>
auf das erstesoup
-Tag zu und gib dessen Inhalt aus.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 2. Kapitel 3
Herausforderung: Das BeautifulSoup-Objekt
Aufgabe
Swipe to start coding
Gib das erste h1
des page-Tags mithilfe von BeautifulSoup
aus:
- Importiere
BeautifulSoup
ausbs4
. - Erstelle das
BeautifulSoup
Objekt und weise es der Variablesoup
zu. - Greife mit der Variable
<h1>
auf das erstesoup
-Tag zu und gib dessen Inhalt aus.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 2. Kapitel 3