Automation script to collect vaccination availability data and send vaccination availability emails by utilizing Cowin API.
Clone the source repository from Github.
$ git clone https://github.com/kartikeyas00/cowin-automate.git
Install the required python libraries from requirements.txt
file.
$ pip install -r requirements.txt
Once installed, this is very easy to use. First, change the configurations in the config.yml
file according to your need.
Then setup the sqlite3 database by giving create_db
argument in main.py
file:
$ python main.py create_db
To get the email updates, give email_alerts
argument to main.py
file:
$ python main.py email_alerts
To collect the data in the created database, give data_collector
argument in main.py
file:
$ python main.py data_collector
There can be multiple use cases for this project:
- use
email_alerts
to send vaccine availability alerts periodically by automating the script with Crontab or task scheduler in case of windows. - use
data_collector
to collect data periodically which can be used for research purposes or buiding a service of some kind.
If you would like to contribute to this project, please follow these steps:
- fork this repository
- make your changes
- Submit a pull request and describe your changes in detail.