top of page
web scraping python.png

Scraping Data From a Real Website

​​​​​

Link to code: Click here

​​​​​​

Objective:

Create a web scraper to extract structured data from a real website for analysis.

The goal is to extract the detailed table of population statistics by country, on the following website: ​

https://www.worldometers.info/world-population/population-by-country/​​​​

​

Tools Used:
Python, Beautiful Soup, Requests, Pandas

​​​​

Process:

  • Utilized the requests library to send requests to the target website.

  • Parsed HTML content using Beautiful Soup to navigate and extract desired data.

  • Identified patterns in the website’s HTML structure to accurately locate data points.

  • Cleaned and structured the extracted data using Pandas for further analysis.

​​​​​

Result:

  • Successfully extracted and structured the data into a CSV file for further use:

​

​

​

​

 

 

 

 

 

 

 

Click here to see complete code on GitHub

téléchargement1_edited.jpg
bottom of page