Final project for the Huawei ICT Academy Python course.
A minimalist Python web scraper that extracts real-time COVID-19 statistics from Worldometer, processes the data, and visualizes the impact across top countries.
- Web Scraping: Fetches live global COVID-19 data using
requestsandBeautifulSoup. - Data Wrangling: Cleans and structures the raw HTML table into a robust
pandasDataFrame. - Data Export: Automatically exports the processed dataset to a local
covid19.csvfile. - Data Visualization: Generates a bar chart of the top 10 countries by total cases using
matplotlib.
Ensure you have Python 3 installed. You will need the following libraries:
requestsbeautifulsoup4numpypandasmatplotlib
- Clone the repository or download the Jupyter Notebook file.
- Install dependencies (it is recommended to use a virtual environment):
pip install -r requirements.txt
- Run the Notebook: The
requirements.txtfile already includes Jupyter Lab. You can launch the environment directly from your terminal by running:Once the interface opens in your browser, select the notebook file and execute the cells sequentially to scrape the site, generate thejupyter lab
covid19.csvfile, and render the bar chart.