Skip to content

A Python code to alert users about the availability of vaccine shots in their districts.

Notifications You must be signed in to change notification settings

eagle8089/CoWin-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoWin-API

PyPI - Python Version

Hi, I have created automated system to detect the availability of COVID-19 vaccine shots and send an SMS Alert to your Phone.

This code is utilizing 2 APIs and external accounts:

  1. Co-WIN Public API (https://apisetu.gov.in/public/marketplace/api/cowin)
  2. Twilio API and Account (https://www.twilio.com/)
  3. Heroku Cloud Hosting (https://www.heroku.com/home)

How to run

At this point you can run this code in your system and everything will work fine

Now, We can't keep our PC running 24x7 for this right? So, Follow these steps:

  • We can host this code on a free cloud provider like Heroku. For this first create a free account in Heroku (https://signup.heroku.com/).
  • Once ready, create a new app in the Heroku Dashboard. Give a nice name and we are ready...
  • Heroku gives excellent explanation on how to deploy your files onto it, So I am going to skip it.
  • Noticed the Procfile? The file with no extension? It is to let the Heroku server know of what to do with you code. Once your code is deployed, Go to your resources tab in Heroku Dashboard. Here you will see a worker under the free Dynos. Activate it.

**Vola! Your Program is now up and running **

Finding your District ID using API calls

You have to send a few simple API calls using your browser to find you district ID.

About

A Python code to alert users about the availability of vaccine shots in their districts.

Topics

Resources

Stars

Watchers

Forks

Languages