Scans the official Government website and throws notifications to Slack when new cases arise (Ministry of Health and Family Welfare)
bot.log
) too, to evaluate what went wrongpip install tabulate
pip install requests
pip install beautifulsoup4
git clone https://github.com/rachitiitr/coronovirus-bot-tracker.git
cd coronovirus-bot-tracker
touch auth.py
DEFAULT_SLACK_WEBHOOK = 'https://hooks.slack.com/services/<your custome webhook url>'
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