Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/muskanpaliwal/coronovirus_bot
Scans the official Government website and throws notifications to Slack when new cases arise(Ministry of Health and Family Welfare)
https://github.com/muskanpaliwal/coronovirus_bot
coronavirus coronavirus-tracking python scraping-websites slack-webhook
Last synced: 22 days ago
JSON representation
Scans the official Government website and throws notifications to Slack when new cases arise(Ministry of Health and Family Welfare)
- Host: GitHub
- URL: https://github.com/muskanpaliwal/coronovirus_bot
- Owner: MuskanPaliwal
- Created: 2020-03-23T03:49:03.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-04T05:56:33.000Z (almost 4 years ago)
- Last Synced: 2024-10-24T22:14:41.561Z (2 months ago)
- Topics: coronavirus, coronavirus-tracking, python, scraping-websites, slack-webhook
- Language: Python
- Size: 57.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CoronaVirus Bot for India (Covid19)
![Corona Slack Bot](https://github.com/MuskanPaliwal/Coronovirus_Bot/blob/master/BotWorkingImg/Screenshot%20from%202020-03-23%2017-40-40.png)
## 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.## Installation
- You need Python
- You need a Slack account + Slack Webhook to send slack notifications to your account
- Install dependencies by running
```bash
pip install tabulate
pip install requests
pip install beautifulsoup4
```
- Clone this repo and create auth.py
```bash
git clone https://github.com/MuskanPaliwal/Coronovirus_Bot.git
cd Coronovirus_Bot
touch auth.py
```
- Write your Slack Webhook into auth.py
```python
DEFAULT_SLACK_WEBHOOK = 'https://hooks.slack.com/services/'
```
- Setup the cron job to receive updates whenever something changes
```bash
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 covid-19_bot.py --states 'haryana,maharashtra'
# to receive updates for all states, ignore the --states flag
```