Cowin Notifier

visitors Python Star Badge

forthebadge

hackCovid2.0 I feel super happy to announce that my project,Cowin-Notifier , has been selected to win the Seventh Prize.

About

Cowin-Notifer is a simple telegram bot that automatically sends notification regarding the availability of vaccine in your district. This is also a real time tracker of vaccine , you can check availability of vaccine using command /vaxinfo . You can host this bot in on your device.


Installation

  1. Clone the repo git clone https://github.com/
  2. Install dependencies pip install python-decouple pyTelegramBotAPI time datetime requests Docs
  3. Create a telegram bot using BotFather
  4. Put the Bot's API Token in the .env file
  5. Run python3 main.py
  6. Run python3 vaccine.py
  7. Enjoy

Note

On 6th May 2021, CoWin API added caching and rate limits. The public API data would be cached upto 30 minutes, so the alerts wouldn't be so instant in busy areas, which reduced this bot's functionality to being a nice UI for public CoWin site in Telegram.


Demo

asciicast

1.Now open your bot in telegram and click start.

2.Then click notify-start and then give the required details.


Made with Love <3

forthebadge