Include Other Informations in the Scraping Process
Now that we have understood how the scraping process works let's finish the job and also include the missing information in our process!
Oppgave
Swipe to start coding
- Import
pandas
and initialize an emptydf
. - Create a
for
loop to iterate over all tags. - Scrape the country name, the capital city, population, and area.
- Append the scraped values in the
df
.
Løsning
Mark tasks as Completed
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 6
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Awesome!
Completion rate improved to 14.29
Include Other Informations in the Scraping Process
Now that we have understood how the scraping process works let's finish the job and also include the missing information in our process!
Oppgave
Swipe to start coding
- Import
pandas
and initialize an emptydf
. - Create a
for
loop to iterate over all tags. - Scrape the country name, the capital city, population, and area.
- Append the scraped values in the
df
.
Løsning
Mark tasks as Completed
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 6