anoop142 / cowin-cli Goto Github PK
View Code? Open in Web Editor NEWCross platform command line tool to List and Book Vaccine Slot using COWIN API.
License: GNU General Public License v3.0
Cross platform command line tool to List and Book Vaccine Slot using COWIN API.
License: GNU General Public License v3.0
So I tried this, I thought two ID's with a comma separation would work for booking ID 1 and 2 together, but the bot only booked for ID 1.
(I've used it earlier with 'all' in my bat file, which works fine to book everyone)
I'm going to have to cancel and have asked my friend to use a new number for only the two who need to be vaccinated, and try again tomorrow :(.
I am trying to book a slot in south delhi district. Tried "south delhi" "south-delhi" "south_delhi" "southdelhi" but none of them work. How do i figure out the correct district name?
Hello,
I hope you are already aware of the caching issue of the protected APIs in Cowin. This started after Cowin removed the captcha support. Currently, the public APIs are fetching the latest data and the protected APIs are sending the cached data. The alerts are faster and are being sent as soon as the slots are opened. However if you log in to the application, you may not see the slots in the UI. Some can see it immediately. Some can see after 5 mins. Booking has become a lottery now. I don't know whether it's a bug or purposely done to bypass the bots. I've checked your program and it has the potential to help people book slots if you can also expose date as an input parameter. You can check this youtube video to understand the issue, https://youtu.be/hf44_-qqddY
Dates in all these formats are acceptable
t.date = "08-06-21"
t.date = "08-6-2021"
t.date = "08-6-21"
t.date = "8-06-2021"
t.date = "8-06-21"
t.date = "8-6-2021"
t.date = "8-6-21"
t.date = "08/06/21"
t.date = "08/6/2021"
t.date = "08/6/21"
t.date = "8/06/2021"
t.date = "8/06/21"
t.date = "8/6/2021"
t.date = "8/6/21"
Thanks & Regards,
Suman
Hi Anoop,
The script is amazing I was able to book an appointment for my mum. But today when I tried to book I received a bad request error. Also, centre lists do not contain all available centres in districts.
Hi
Current scenario is:
Search vaccination center>try to book center>receive OTP>Enter otp>Enter basic Details>Appointment is book OR Vaccination center is full
If vaccination center is full then we have to follow again same above procedure, and it waste several seconds to book vaccination center because of new otp.
So is that possible that using only one OTP to re-search vaccination center and try to book.
in case vaccination center is full then we dont need to another otp, it just continue recent otp session and book vaccination center.
I think the tool is no longer able to get any updates on slots or book slots. Also, I don't receive OTP when trying to authenticate. I'm using the termux version.
I've seen that when using the API for listing centers without the token, the data isn't up to date, it takes a little longer to get the centers. Using another script, when using token/adding authorization to the header even for the listing centers/public API, the data is more up to date, it gets the open centers faster.
Do you think you could figure out a way to use the OTP generated token to search as well? Hence simulating a logged-in user?
Hey, could you merge this so the bot starts working again (without Chrome Inspect Token trickery)
Thanks.
lets assume, if district name has space then how to make it work
-d "district name" is not working
example: -s punjab -d "sas nagar"
$ ./cowin-cli.exe -sc -s punjab -d "sas nagar" -no 90000000
2021/05/11 16:55:10 Invalid district!
I want to run your program whenever i get notification in telegram ...
Have Tasker
but don't know how to execute your program via Termux-api
Please delete this repo as it violates guidelines and norms set by gormint of India.
This is a very nice project. Appreciate the effort. I noticed some bugs(I believe they are as I couldn't get them to work) and I am sharing them here.
Notification script for automated termux script isn't available in code. The following line in the termux script should be changed appropriately for termux which I believe is cowin-cli
COWIN_CLI="./cowin-cli"
schedule function in the termux automated script is the following:
schedule(){
"$COWIN_CLI" -s "$STATE" -d "$DISTRICT" -sc -no "$NO" -names "$NAMES" -centers "$CENTERS" -v "$VACCINE" -dose $DOSE -aotp -c "$DATE" && exit 0
}
It doesn't have -m "$AGE"
. But the script for linux have it.
$ cowin-cli -p 423701
2021/05/21 17:16:03 Unauthenticated access!
Furthermore my district or pincode not working.
$ cowin-cli -s maharashtra -d aurangabad
2021/05/21 17:20:43 Invalid district!
I am on "Termux" with Zero Coding Knowledge. Please help and how to notify/book by "Pincode"
Using the default i.e. FORENOON
gave me a Invalid slot Id
error. Booking was successful once I changed the default to 10:00AM-11:00AM
.
can you help me with setting this up. like on what software to run it on or something like that.
Hey anoop, im a user from karnataka and im unable to run the precompiled version 1.4.7 and it shows tamilnadu and i want to run it in karnataka. Can you pls help ?
Hi
Affected Version: v1.5.4
Problem: OTP not receiving
--> I have tried two different numbers but i dont get OTP on both number. But on cowin portal everything works perfectly.
So i think maybe api is blocking otp request or something else
Hello,
First of all thankyou for the awesome code.
zsh: command not found: cowin-cli
The Versions are here
Kindly help, I am trying to get slots for Ernakulam, Thanks and Regards
Please advise the steps to be followed to make Token generation with support for Auto OTP for Token generation part of executing cowin-cli-notify-book.sh
.\cowin-cli.exe -p 441914
output 2021/05/10 10:07:36 Invalid state!
running from Windows Power Shell
Can you add an optional filter for Age with Script SC?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.