No description
- Python 100%
|
|
||
|---|---|---|
| cowin.py | ||
| cowin_by_pin.py | ||
| LICENSE | ||
| README.md | ||
COWIN Vaccine Availability Telegram Notifier
With the initiation of the COVID vaccination drive across India for all 18+ individuals, I wrote a python script which with the help of telegram alerts the user regarding open slots in the vicinity! This script can used for both age group alerts 18-44 and 45+ both.
Prerequisites
- To deploy the script you must be having a server which you can serve 24*7.
- Telegram Id, Telegram bot and Telegram Channel (All are free).
Installation
- Clone this repo if you are having linux server or just copy the cowin.py from the repo.
git clone https://github.com/SP4RKiOP/Cowin_vaccine_telegram_notifier.git
- This script is using the api of search by district, so first get your district id from cowin site, api is provided there for the same.
- Create your Telegram bot and copy the HTTP API provided by the Botfather.
- Create a Telegram channel and make it public, add the bot to that channel, copy the channel id of your channel.
Bot's HTTP API example-
Channel ID is the text after the forward slash:-

- Go through the script for any age change or any data search parameter change you want to make.
- Now if you are using linux just use crontab to make this script run every 1min or 30sec(with sleep30) commands.(google)
- After sucessfull creation your channel should give you notifications like this:-
- GET VACCINATED, STAY HEALTHY.