mirror of
https://github.com/truroshan/py-cowin-termux
synced 2025-04-20 17:24:36 +05:30
cowin.py | ||
install.sh | ||
README.md | ||
requirements.txt |
CoWIN Auto Booking Slot (Up : 02/06 )
Auto Slot Booking when there is a vaccine slot available at your location, by running a script on your phone.
If you like my work, you can support me by buying me a coffee by clicking the link below
Getting Started
By using Tremux you can run script and recieve the notification on your phone.
-
Install Termux
- Install Termux App FDroid.
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- Install Termux:API FDroid.
-
SiteMode (
s
) : Fetch OTP from Database Hosted on Cloudflare Worker- setup Database on Cloudflare.
- Install Automatically forward SMS to your PC/phone App. Playstore
-
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
= AutoModes
= SiteModem
= 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.