Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 1.96 KB

README.md

File metadata and controls

37 lines (31 loc) · 1.96 KB

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.

Check it out!

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

  1. 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
  1. 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.
  2. Create your Telegram bot and copy the HTTP API provided by the Botfather.
  3. 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:-

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

8. GET VACCINATED, STAY HEALTHY.