GithubHelp home page GithubHelp logo

cowinpy-andy's Introduction

CowinPy-Android

Its an easier way to run python script to Covid vaccine slot book developed by @pallupz . In earlier version Script have to be run continously on PC/Laptop, But by using Chaquopy we can do that on Android devices. It will be way less power consuming and help folks not having access to Computer Laptops.

You can dowload apk from Here
You can dowload Beta apk from Here

If possible notify if it works or if any problem immediately create new issue. Also, STAR this repository with others if you liked. It keeps me motivated

Update โœ :

Master Branch
V1.1 : Automatically detects SMS from COWIN and enters it.
: Beep alert sounds are now suported on Android.
: User can continue without giving permission to SMS and type OTP manually.
Dev Branch
V2.0 : Added feature to save JSON for diffrent profiles configuration.
     : Added feature to send OTP to PC version of script.
     : Fixed crashing bugs.

Screenshots ๐Ÿ“ฑ :

Setup process for Otp to Pc feature

Note : Pc and android device must be connected to a common network (Same wifi or Connect pc with hotspot of Android device )

Step 1 : Download Beta APK from Here and Zip containg all files from OtpTOPc folder from Here. Run OtpServer.py in terminal.

Step 2 : Open app on your device and press Laptop icon on top right corner. Enter the details in App and hit Handshake. When you see "You are connected", press Save in app.
( I have not added many checks (LAZY) so please enter as they appear on screen )

That's it now run the main.py in terminal.๐Ÿคž

BONUS : Use Otp2Pc in your project ๐Ÿค˜

Download otpServer.py file from Here and add it to your working directory

from otpServer import getOtp

# use this function whereever you want OTP

OTP = getOtp()

cowinpy-andy's People

Contributors

vishvajeet590 avatar

Stargazers

 avatar

Watchers

 avatar

cowinpy-andy's Issues

Unable to save json

Tried both apks.

In beta apk, after otp is received, without reading it, coming back to first screen.

in regular apk, it says "error 30-Read only file system"
Only if we opt n for saving json file, it is running.

App doesn't run in background

I've taken care of the battery optimization setup and allowed to run the app in background through app settings but it seems like it isn't running in background.
This I tell because after every refresh instance, the syntax print shows details like pincode, etc with time stamp of the instance. But once you switch over from this app to any other function and then go back, it doesn't give you the same syntax.

Issue

Is auto OTP working?
I downloaded new APK but I had to manually enter OTP

Answer format for auto-booking

What should be the answer format for going with "yes" option for auto-booking?
The suggested answer is "yes-please" or "no"
So if the user want to go with auto-booking feature, should he write "yes-please" or just "yes" would do.
It's bit confusing for the user.
Do check it out

Feature request

Heyy!! Loved your project. Just one quick suggestion. Can you assign any letter or press enter to refresh at that moment. It says Ctrl+C but can't do that right?

Constant polling loop ends

Once the constant polling hits the restricted number of attempt count, it gives out the error showing too many attempts.
But it does not keeps on trying till it is allowed again to start polling, as opposed to the bombardier code. It just give a buzzer beep and stops with the error message display.
Is it meant to be that way?
Shouldn't it be continuously polling?
Although user has to enter the OTP manually, but if auto-OTP reading and continuous trials are enabled, the developer version could be it.

Rate limit update by cowin

New rate limit by COWIN.

Seven-day Search: 100 queries in 5 minutes OR 20 queries per session
after that ur requests got blocked
CALENDAR_URL_DISTRICT = "https://cdn-api.co-vin.in/api/v2/appointment/sessions/calendarByDistrict?district_id={0}&date={1}"
CALENDAR_URL_PINCODE = "https://cdn-api.co-vin.in/api/v2/appointment/sessions/calendarByPin?pincode={0}&date={1}"

Single-day Search: 100 queries in 300 seconds (5 minutes)
FIND_URL_DISTRICT = "https://cdn-api.co-vin.in/api/v2/appointment/sessions/findByDistrict?district_id={0}&date={1}"
FIND_URL_PINCODE = "https://cdn-api.co-vin.in/api/v2/appointment/sessions/findByPin?pincode={0}&date={1}"

For best results without being rate-limited,

  1. use a lower frequency (8 seconds or higher), AND
  2. search for a single day using dd-mm-yyyy AND

Issue

Bruh why is it while downloading saying that it contains a trojan virus. I am trying to download in MIUI

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.