covid-tracker-script

A simple python script to fetch the latest covid info

How it works

  1. First, get the current date in MM-DD-YYYY format.
  2. Check if the csv database for that date exists abd has been downloaded. If not, download it using wget from CSSEGISandData/COVID-19.
  3. If wget throws error(meaning that the database does not exist for that day), decreament the day by one.
  4. Go back to step 2 until the latest covid info has been downloaded.
  5. Open the file with csv reader.
  6. Ask the user for input of a province or a country.
    WARNING: The input is case sensitive so make sure to put the first letters in caps and the rest in small.
  7. If a province or a country exists (ex. "New York", "Nagasaki"), then print the latest covid info of that place. If not, print nothing.
  8. Go back to step 6 until the user gives interrupt or gives exit as province.

NOTE

Please make sure to install the pip python module before running the script.

Windows

  1. Run command prompt as administrator.
  • Go to Start > Windows System > Right click on command prompt and run as administrator. OR
  • Press Windows Key + R and type cmd. Then press Ctrl + Shift + Enter.
  1. Execute pip install wget.

GitHub

GitHub - dotslashinit-sh/covid-tracker-script: A simple python script to fetch the latest covid info
A simple python script to fetch the latest covid info - GitHub - dotslashinit-sh/covid-tracker-script: A simple python script to fetch the latest covid info