CoWIN Auto Booking Slot
This repository has been archived on 2025-01-20. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2021-06-04 15:26:00 +05:30
cowin.py Update cowin.py 2021-06-04 00:21:04 +05:30
install.sh bash script for Installing Pkgs and Requirements 2021-05-17 10:08:24 +05:30
README.md Update README.md 2021-06-04 15:26:00 +05:30
requirements.txt Update requirements.txt 2021-06-02 15:22:39 +05:30

CoWIN Auto Booking Slot (Up : 04/06 )

Auto Slot Booking when there is a vaccine slot available at your location, by running a script on your phone.

Terms and Conditions

  • That this script has been developed solely for the purpose of helping people book their vaccination slots by way of automation.
  • The script, a public use free software, assists you in a comprehensive screening of available slots and booking the same for you. IT DOES NOT GUARANTEE A SLOT. Only if a slot is available as per your preference, will the slot be booked.
  • Further, any use of the script for monetary, unethical, or illegal purposes is not permitted. - In case, you are found to do the same, YOU shall be solely liable for the consequences. The Developer shall and cannot be held liable for the unethical or illegal use of the same.
  • The Developer reserves their rights to take any legal action as enumerated under the law against any unethical or illegal use of the same.

If you like my work, you can support me by buying me a coffee by clicking the link below

Buy Me A Coffee Telegram Group

https://user-images.githubusercontent.com/45506201/120487245-6bdb9300-c3d3-11eb-8983-fef996227eb9.mp4

Getting Started

By using Tremux you can run script and recieve the notification on your phone.

  • Install Termux

    Termux wiki suggest not to use playstore termux.
  • Installing Packages and Requirements

    • Step 1 : First update pkg

      pkg update
      
    • Step 2 : Install git

      pkg install git
      
    • Step 3 : Clone repo

      git clone https://github.com/truroshan/cowin-termux.git
      
    • Step 4 : Open Cloned Folder

      cd cowin-termux
      
    • Step 5: run install.sh

      bash install.sh
      
  • OTP Fetching Methods

    // Three Options //

    • AutoMode (a) : Fetch OTP using Termux:API App

    • SiteMode (s) : Fetch OTP from Database Hosted on Cloudflare Worker

    • ManualMode (m) : Input method

Running Main Script for CoWin Booking

Command for script :

python cowin.py --m <MOBILE-NO> --p <PIN-CODE> 

python cowin.py --m 9966996699 --p 110011 

⚠️ Required values like mentioned below:

  • Replace --m = MOBILE-NO with your mobile no.
  • Replace --p = PIN-CODE or DISTRICT-ID with your Pincode or District Id.

💡 Optional arguments accepted:

  • Pass --a = YOUR-AGE with your age (default is 18).
  • Pass --v = Vaccine Name ex : cova | covi ( default any Vaccine ).
  • Pass --d = DOSE_COUNT Vaccine First Dose or Second Dose (default dose is 1).
  • Pass --o = OTP fetching mode.a = AutoMode s = SiteMode m = ManualMode ( default AutoMode )
  • Pass --t = INTERVAL-IN-SECOND to change the frequency of calling Cowin API (default is 30 sec).
  • Pass --b for book for Today.
  • Pass --f = Free or Paid ( default Both Free and Paid).
  • Pass --r Don't use Token saved in file to re-login.