eagle8089 / CoWin-API

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.


Languages

Language:Python 100.0%