Giter Site home page Giter Site logo

vsingh18567 / coronavirustracker Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 20 KB

corona_tracker.py scrapes data from Worldometer's Coronavirus page every day, and sends targeted recipients a daily update on the number of cases/deaths

License: MIT License

Python 100.00%

coronavirustracker's Introduction

Coronavirus Tracker

corona_tracker.py scrapes data from Worldometer's Coronavirus page every day, and sends targeted recipients an email with the daily update on the number of cases/deaths in specific locations (countries, US states, US counties).

How to use the project

A csv is created with the list of recipients, and the specific locations that they need to be updated about. sample.csv can be accessed to see a sample set-up of the data. Each recipient has their own row, with a maximum of 8 locations for each recipient.

For each location, you need a geo_type (the type of location being searched for - 'Country', 'State', 'County'), us_state (only needed if geo_type='State') & geo_name (the location being searched for). The default for us_state is NaN if it's not needed. If you're looking for global infections, set geo_type='Country' and geo_name='World'

Once the CSV has been filled in, the python file can be run. THe main() function is initiated when the python file is run. hour & minute is the time at which you want the email to be sent. This is by default 8:25, as I am located in the +8:30 GMT timezone. The data resets at 00:00 GMT every night, and the email is therefore sent 5 minutes before the data is reset. Change it based on where you are located. The from_email variable is a dictionary with username and password of the E-mail account (needs to be an insecure Gmail id).

Once it's been initated, the python file can run continuously, sending the daily updates.

coronavirustracker's People

Contributors

vsingh18567 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.