Giter Site home page Giter Site logo

surya76657 / coronovirus-bot-tracker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rachitiitr/coronavirus-bot-tracker

1.0 1.0 0.0 12 KB

Scans the official Government website and throws notifications to Slack when new cases arise (Ministry of Health and Family Welfare)

Python 100.00%

coronovirus-bot-tracker's Introduction

CoronaVirus Bot for India (Covid19)

Corona SlackBot by rachitiitr

YouTube Demo

  • Check the demo for how this works on YouTube here.

Features

  • Sit back and relax - the coronavirus updates will come to you.
  • Get Slack notifications (picture below)
    • New Corona Virus cases happening in India
    • How many Indian nationals have Corona Virus per State?
    • How many deaths happened per State?
    • The new States entering the corona zone like Chattisgarh
  • Too many updates? Subscribe only to the states that you want.
  • Its reliable - the source of data is official Government site (here)
  • Its ROBUST!
    • What if script fails? What if the Govt website changes format?
    • You get Slack notifications about the exceptions too.
    • You have log files (check bot.log) too, to evaluate what went wrong
  • Don't like a feature? Change it! Raise a Pull Request too ๐Ÿ˜‰

Installation

  • You need Python
  • You need a Slack account + Slack Webhook to send slack notifications to your account
  • Install dependencies by running
pip install tabulate
pip install requests
pip install beautifulsoup4
  • Clone this repo and create auth.py
git clone https://github.com/rachitiitr/coronovirus-bot-tracker.git
cd coronovirus-bot-tracker
touch auth.py
  • Write your Slack Webhook into auth.py
DEFAULT_SLACK_WEBHOOK = 'https://hooks.slack.com/services/<your custome webhook url>'
  • Setup the cron job to receive updates whenever something changes
crontab -e # opens an editor like vim or nano
# now write the following to run the bot every 5 mins
*/5 * * * * cd $PATH_TO_CLONE_DIR; python3 corona_bot.py --states 'haryana,maharashtra'
# to receive updates for all states, ignore the --states flag

coronovirus-bot-tracker's People

Contributors

rachitiitr avatar

Stargazers

Surya Prakash avatar

Watchers

James Cloos 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.