Giter Club home page Giter Club logo

cowin-cli's People

Contributors

anoop142 avatar ishaanrawat avatar subins2000 avatar sushrut111 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cowin-cli's Issues

Entered two name ID's and it only booked for the first one

Capture

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 :(.

Invalid district!

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?

Cowin Caching of the Protected APIs

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

Issue while booking

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.

suggestion: only one time otp require

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.

Stopped working?

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.

(Idea) Use token for listing centers

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?

Merge PR 14

Hey, could you merge this so the bot starts working again (without Chrome Inspect Token trickery)

#14

Thanks.

district name has space

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!

run this program using termux-api

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

Wrong commands and missing code in termux script

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.

Invalid District, Pincode (-p) returning with "Unauthenticed Access"

$ 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"

Slot format seems to have changed

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.

Unable to run cowin-cli in karnataka

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 ?

OTP not receiving v1.5.4

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

Setup in MacOs

Hello,
First of all thankyou for the awesome code.

  1. I Setuped Go Lang
  2. Ran first script to go get the repo.
  3. after that when i try to list i am getting an error like --> zsh: command not found: cowin-cli

The Versions are here

  • MacOs - 11.3.1
  • Bash v.3.2

Kindly help, I am trying to get slots for Ernakulam, Thanks and Regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.