Inspiration
This project aims at turning people aware through real-time COVID19 statistics about the impact of the virus on a global scale. It helps to mitigate the hassle of constantly navigating to websites for checking updated statistics and instead brings the information home to the comfort of your inboxes.
What it does
The program sends an automated email message on an hourly basis with updated COVID-19 statistics on multiple email addresses as specified. This reduces the hassle of accessing the actual website to check for the actual statistics of infected and recovered patients.
How I built it
Used Python and Selenium web driver to locate and extract HTML elements from "covid19india.org" website and display them on a console plus send automated batch emails using MIMEtext module in Python. The entire process is automated and can send emails on a real-time basis after user-defined time intervals.
Challenges I ran into
- Faced issues with locating HTML elements using full xpath.
- Had to learn about Selenium implementation to scrape the JavaScript-based website.
Accomplishments that I'm proud of
Successfully deployed a fully automated COVID-19 statistics scraper on "https://www.covid19india.org" using Selenium and Python. It utilizes HTML element xpath using Inspect tool to access the following values:
𝟷. Total Cases
𝟸. Total Active Cases
𝟹. Total Recovered Cases
𝟺. Death Toll
𝟻. New Infected Cases
𝟼. New Recovered Cases
𝟽. Additional Deaths
What I learned
- Learnt about batch email messaging using MIMEText module in Python.
- Learnt about Selenium web driver implementation in Google Chrome and Opera Mini.
Log in or sign up for Devpost to join the conversation.