CoViD-19 Notifier

This Project fetch the Real Time CoViD-19 status of India from Ministry of Health and Family Welfare Website and display it as Notification to user. Since, the data is from MOHFW, thus doubts regarding accuracy doesn't exists i.e it is 100% accurate as per the Government and it's affiliated Agencies who manage this Issue.

To run this Project please follow these steps

  1. Open command prompt or powershell window.
  2. Type this command
    git clone https://github.com/YashasviBhatt/CoViD-19_Notifier
    and press enter.
  3. Go inside the Cloned Repository folder and open command-prompt or powershell window.

  4. Type
    pip install -r requirements.txt
    and press enter in either command_prompt or powershell window as administrator.

  5. After Installing all the required libraries execute the program
    python CoViD_19_Notifier.py.

  6. If you would like to see the data which showed up then open data.csv file.

Working

  1. Firstly, we have created a function named as notifyMe(title, message) which will generate a notification with title and message passed as arguments.
  2. Secondly, we have created a function named as getData(url) which will fetch the data from url and returns the text it extracted from url.
  3. Now, we have parsed the website of Ministry of Health and Family Welfare using Beautiful Soup HTML Parser.
  4. Beautiful Soup parse the website and generate a parse tree for parsed pages, thus this parse tree is then used for data extraction.
  5. After parsing the Website we have extracted the useful/required data using several Beautiful Soup features and passed them to notifyMe(title, message) as arguments, which will lastly generate notification.

Built With

Share this project:

Updates