Code Monkey home page Code Monkey logo

wuhan_stats's Introduction

wuhan_stats

Email and desktop alert on updates of COVID-19 pandemic statistics.

Generates alert using the Notifications feature on Mac, Linux or Windows as well as via email for COVID-19 latest statistics as they become available at https://www.worldometers.info/coronavirus/

Email alert can be swtiched off or on and provides deeper coverage.

The app has a simple interface allowing to set frequency of the alerts and pause them. It also diplays a countdown timer.

Snapshots

Control

Alert

Email

Dependencies:

  • requests
  • BeautifulSoup
  • plyer

To install:

'pip install wuhan_stats'

Email

The app uses smptlib and needs to have access to an email account. The password for the account is retrieved from the keychain on the local machine using popular Python 'keyring' package. All email attributes are provided as CLI keys. For example, let's say 'gmail' account in the computer's keychain references to Gmail user account called 'foo'. The app will retrieve the password for the account based on command line parameters '-s gmail' and '-u foo'.

To run:

'python -m wuhan-stats -t (insert receiver email) -f (insert sender email) -s (insert keyring service name) -u (insert keyring uid)'

Notes

For Mac, make sure desired notification style is choosen for Script Editor in System Preferences->Notifications.

wuhan_stats's People

Contributors

vipervit avatar

Watchers

 avatar  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.