Initially made into a bot (not deployed on any cloud yet) to find Vaccine Centres in Kannur, Kerala for people under the Age 45 (and above 18). This CANNOT book slots automatically. Only use this to check for slots.
-
Made using the cowin-api Click here for Api Setu Site
-
Updates might not be real time as documentation mentions "data can be cached and may be up to 30 minutes old".
-
Won't send a message if availability of Vaccine < 10 (No point doing that)
-
Sends message using telegram. If you want to configure to your own requirements, you must have your own Telegram token and other data to send message to telegram. If you simply want to run the program, refer to Configuring Telegram Bot or just remove line 78, 86, 96 in main.py (shown below):
send_new_msg(txt, center)
cleaning_db()
telegram_required()
Refer to this video. Though the video is a bit long, it does a good job of explaining what needs to be done in order to configure the telegram bot.
- The code can also be modified to check availability in any other district. The code can be modified to check availability of Covid-19 Vaccine for any district in India. To see all district codes, click on this link to view csv containing District ID's . On finding your required district, copy paste it into line number 22 in main.py
- For example:
dist_id = "INSERT_DISTRICT_ID HERE"
(ie)
dist_id = "512"
- Fin.
- Working Telegram channel: https://t.me/KannurVaccineTracer
- Since this is an early build, a lot of random, unwanted code is lying around that may or may not be helpful. Examples include timing the loop and commented code which might come into help whilst creating a bot.
- Additional documentation help
- Credit goes this repo for all the main work!
- I've tried to document the code as much as I can. Lemme know if you need any other help.
- Click here 👇🏻 if you want to get me a cup of coffee :))