Skip to content

This is a python script that tweets available slots on the Cowin website for 18+ age range. This uses the Cowin Public APIs.

License

Notifications You must be signed in to change notification settings

shubhayu-64/Cowin-Notifier

Repository files navigation

Cowin-Notifier

This is a python script that tweets available slots on the Cowin website for 18+ age range. This uses the Cowin Public APIs.

The Twitter handle of the Bot: @Cowin_Notifier

Features

  • Find any open slots in any district and tweet important information.
  • Runs 24/7 and updates at an interval of 1 hour.

Installation

  1. Clone the repo or download manually.
git clone https://github.com/shubhayu-64/Cowin-Notifier.git
  1. Move to cloned/downloaded directory cd Cowin-Notifier
  2. Run pip install requirements.txt
  3. Update config.py with your Twitter API credentials.
  4. Start the script by python main.py

Screenshots

Profile Image

  • Tweets posted.

Tweets Image

  • Terminal of the script

Terminal Image

Deploying

Since Cowin APIs are Geo-fenced, it might be difficult to get responses if hosted somewhere else.

I have hosted in my Raspberry Pi 3 Model B+ with my local network. This solved the issue for me.

Contributing

Pull requests are welcome. For major changes, feel free to open an issue first to discuss what you would like to change.

License

MIT © Shubhayu Majumdar

🙋‍♂️ Support

💙 If you like this project, give it a ⭐ and share it with friends!

Buy Me A Coffee

Made with ❤️ and Python