This very basic script can be used to automate COVID-19 vaccination slot booking on India's Co-WIN Platform.

Overview

COVID-19 Vaccination Slot Booking Script

This very basic CLI based script can be used to automate covid vaccination slot booking on Co-WIN Platform.

Important:

  • POC project. Use at your own risk.
  • Do NOT use unless all beneficiaries selected are supposed to get the same vaccine and dose.
  • No option to register new user or add beneficiaries. This can be used only after beneficiary has been added through the official app/site
  • If you accidentally book a slot, don't worry. You can always login to the official portal and cancel that.
  • API Details: https://apisetu.gov.in/public/marketplace/api/cowin/cowinapi-v2
  • And finally, I know code quality probably isn't great. Suggestions are welcome.

Usage:

For the anyone not familiar with Python and using Windows, using the covid-vaccine-slot-booking.exe executable file would be the easiest way. It might trigger an anti-virus alert. That's because I used pyinstaller to package the python code and it needs a bit more effort to avoid such alerts.

OR

Run the script file as show below:

python src\covid-vaccine-slot-booking.py

If you're on Linux, install the beep package before running the Python script. To install beep, run:

sudo apt-get install beep

If you already have a bearer token, you can also use:

python src\covid-vaccine-slot-booking.py --token=YOUR-TOKEN-HERE

Third-Party Package Dependency:

  • tabulate : For displaying data in tabular format.
  • requests : For making GET and POST requests to the API.
  • inputimeout : For creating an input with timeout.

Install all dependencies by running:

pip install -r requirements.txt

Steps:

  1. Run script: python src\covid-vaccine-slot-booking.py

  2. Select Beneficiaries. Read the important notes. You can select multiple beneficiaries by providing comma-separated index values such as 1,2:

    Enter the registered mobile number: ██████████
    Requesting OTP with mobile number ██████████..  
    Enter OTP: 999999  
    Validating OTP..  
    Token Generated: █████████████████████████████████████████████████████████████  
    Fetching registered beneficiaries..  
    +-------+----------------------------+---------------------------+------------+  
    | idx   | beneficiary_reference_id   | name                      | vaccine    |  
    +=======+============================+===========================+============+  
    | 1     | ██████████████             | █████████████████████████ | COVISHIELD |  
    +-------+----------------------------+---------------------------+------------+  
    | 2     | ██████████████             | █████████████████         |            |  
    +-------+----------------------------+---------------------------+------------+  
      
    ################# IMPORTANT NOTES #################  
    # 1. While selecting beneficiaries, make sure that selected beneficiaries are all taking the same dose: either first OR second.  
    # Please do no try to club together booking for first dose for one beneficiary and second dose for another beneficiary.  
    #  
    # 2. While selecting beneficiaries, also make sure that beneficiaries selected for second dose are all taking the same vaccine: COVISHIELD OR COVAXIN.  
    # Please do no try to club together booking for beneficiary taking COVISHIELD with beneficiary taking COVAXIN.  
    ###################################################  
      
    Enter comma separated index numbers of beneficiaries to book for : 2
    
  3. Ensure correct beneficiaries are getting selected:

    Selected beneficiaries:  
    +-------+----------------------------+-----------+  
    | idx   | beneficiary_reference_id   | vaccine   |  
    +=======+============================+===========+  
    | 1     | ██████████████             |           |  
    +-------+----------------------------+-----------+
    
  4. Select a state

    +-------+-----------------------------+  
    | idx   | state                       |  
    +=======+=============================+  
    | 1     | Andaman and Nicobar Islands |  
    +-------+-----------------------------+  
    | 2     | Andhra Pradesh              |  
    +-------+-----------------------------+
    +-------+-----------------------------+
    +-------+-----------------------------+  
    | 35    | Uttar Pradesh               |  
    +-------+-----------------------------+  
    | 36    | Uttarakhand                 |  
    +-------+-----------------------------+  
    | 37    | West Bengal                 |  
    +-------+-----------------------------+
    
    Enter State index: 18
    
  5. Select districts you are interested in. Multiple districts can be selected by providing comma-separated index values

    +-------+--------------------+  
    | idx   | district           |  
    +=======+====================+  
    | 1     | Alappuzha          |  
    +-------+--------------------+  
    | 2     | Ernakulam          |  
    +-------+--------------------+  
    | 3     | Idukki             |  
    +-------+--------------------+
    +-------+--------------------+
    +-------+--------------------+  
    | 13    | Thrissur           |  
    +-------+--------------------+  
    | 14    | Wayanad            |  
    +-------+--------------------+
    
    Enter comma separated index numbers of districts to monitor : 2,13
    
  6. Ensure correct districts are getting selected.

    Selected districts:  
    +-------+---------------+-----------------+-----------------------+  
    | idx   | district_id   | district_name   | district_alert_freq   |  
    +=======+===============+=================+=======================+  
    | 1     | 307           | Ernakulam       | 660                   |  
    +-------+---------------+-----------------+-----------------------+  
    | 2     | 303           | Thrissur        | 3080                  |  
    +-------+---------------+-----------------+-----------------------+
    
  7. Enter the minimum number of slots to be available at the center:

    Filter out centers with availability less than: 5
    
  8. Script will now start to monitor slots in these districts every 15 seconds.

    ===================================================================================  
    Centers available in Ernakulam from 01-05-2021 as of 2021-04-30 15:13:44: 0  
    Centers available in Thrissur from 01-05-2021 as of 2021-04-30 15:13:44: 0  
    No viable options. Waiting for next update in 15s.
    ===================================================================================  
    Centers available in Ernakulam from 01-05-2021 as of 2021-04-30 15:13:59: 0  
    Centers available in Thrissur from 01-05-2021 as of 2021-04-30 15:13:59: 0  
    No viable options. Waiting for next update in 15s.
    
  9. If at any stage your token becomes invalid, the script will make a beep and prompt for y or n. If you'd like to continue, provide y and proceed to allow using same mobile number

    Token is INVALID.  
    Try for a new Token? (y/n): y
    Try for OTP with mobile number ███████████? (y/n) : y
    Enter OTP: 888888
    
  10. When a center with more than minimum number of slots is available, the script will make a beep sound - different frequency for different district. It will then display the available options as table:

    ===================================================================================  
    Centers available in Ernakulam from 01-05-2021 as of 2021-04-30 15:34:19: 1  
    Centers available in Thrissur from 01-05-2021 as of 2021-04-30 15:34:19: 0  
    +-------+----------------+------------+-------------+------------+------------------------------------------------------------------------------+  
    | idx   | name           | district   | available   | date       | slots                                                                        |  
    +=======+================+============+=============+============+==============================================================================+  
    | 1     | Ayyampilly PHC | Ernakulam  | 30          | 01-05-2021 | ['09:00AM-10:00AM', '10:00AM-11:00AM', '11:00AM-12:00PM', '12:00PM-02:00PM'] |  
    +-------+----------------+------------+-------------+------------+------------------------------------------------------------------------------+  
    ---------->  Wait 10 seconds for updated options OR  
    ---------->  Enter a choice e.g: 1.4 for (1st center 4th slot): 1.3
    
  11. Before the next update, you'll have 10 seconds to provide a choice in the format centerIndex.slotIndex eg: The input1.4 will select the vaccination center in second row and its fourth slot.

Comments
  • My attempt at automating the entire operation ;)

    My attempt at automating the entire operation ;)

    My main painpoint was that

    1. I had to enter the OTP whenever the token expired
    2. I had to manually choose the slot
    3. The frequency of polling was not enough to book slots

    **Hence I automated the entire thing end-to-end ;) **

    Please share your thoughts on it.

    Code and steps to install are here. https://github.com/bombardier-gif/covid-vaccine-booking Its hacky and dirty. Pull requests are welcome ;)

    opened by bombardier-gif 54
  • Captcha implemented?

    Captcha implemented?

    Getting the below response - did they implement a CAPTCHA?

    Booking Response Code: 400
    Booking Response : {"errorCode":"APPOIN0044", "error":"Please enter valid security code"}
    Response: 400 : {"errorCode":"APPOIN0044", "error":"Please enter valid security code"}
    
    
    enhancement 
    opened by mrms123 45
  • Token JWT Decode

    Token JWT Decode

    Suggestion: The token contains the time stamp for start and end ('iat': 1621506724, 'exp': 1621507624) of token validation, this can help in invalid token check without calling the beneficiary api everytime

    use pyjwt Also this will allow to regenerate the otp automatically just before expiration (if auto is selected)

    read-up-later 
    opened by aascagarwal 13
  • Thanks for being good citizens!

    Thanks for being good citizens!

    I understand many people looked down upon such bots. I personally prefer this current Human Vs Human situation with captcha than the Human Vs Bot situation before.

    But overall the booking system has been flawed in the first place. I was able to get a slot myself manually by quick response, and with time it got more and more difficult for my friends and family. Online booking itself is exclusionary (my dad would have never been able to book by himself).

    What I liked about this project was that it was shared with the community to be used, many people built on top of it, fixed bugs and made it better (someone could have kept the tool for themselves and this would have never been addressed).

    Cheers for the mindset to serve the community. I have seen people get a slot with this tool who never would have gotten one manually.

    Stay safe!

    Note: I would request the owner of this repo to pin this so that people could read the positive intentions behind this project.

    enhancement 
    opened by bombardier-gif 13
  • New issue: Porgram taps out after trying one round , please check!

    New issue: Porgram taps out after trying one round , please check!

    Getting this msg after one round of 15mins or probably lesser time. +++++++++++++++++ Try for a new Token? (y/n Default y): y Requesting OTP with mobile number xxxxxxx.. Unable to Create OTP

    ERROR: The request could not be satisfied

    403 ERROR

    The request could not be satisfied.


    Request blocked. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
    If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.

    Generated by cloudfront (CloudFront)
    Request ID: KNZjNfiAxHnDP6lR_NLhpRdjtEPLkjI2p0tKapzdOVWn2yNvZg26rA==
    
    Press any key to continue . . . Enter OTP:
    opened by sixfooter 12
  • look for slots from today

    look for slots from today

    Few of the hospitals offer their slots early in the morning for the same day. The current script starts looking for slots from tomorrow, so we will need to change "check_calendar_by_district" and "check_calendar_by_pincode" to "today" instead of "tomorrow".

    enhancement 
    opened by bitshiftr 12
  • Kerala specific!

    Kerala specific!

    Great job - however, the slot booking mechanism looking at just next 7 days, is quite Kerala specific. In other states, they are opening up slots for 10 days or more at once. We need to give users an option on how many days they want to look for

    Edit: I see the 7 days is coming from the API limitations - perhaps a begin date argument?

    enhancement 
    opened by mrms123 12
  • Script gets exited when there is no response from fetch slot API

    Script gets exited when there is no response from fetch slot API

    Due to heavy load sometimes the API used for fetching the slots availability returns no response. As a result the exe program gets exited with beep saying NoneType cannot be iterated.

    User have to start whole script again.

    not-an-issue 
    opened by agabhane 10
  • Captcha decode done by @ayushchd

    Captcha decode done by @ayushchd

    Most of us here might have seen his work on Cowin captcha decoding in JS. I am not JS dev so can any JS dev explain what he is doing I am pasting below the code he used in the extension. I have Opened this issue here as its an active communityand also in his repo no one is answering anything.

    
    
    function sleep(ms) {
        return new Promise(resolve => setTimeout(resolve, ms));
    }
    
    var STOP_BOT = false
    var COWIN_BOT_RUNNING = false
    var COWIN_BOT_ITER = 0
    
    var model = "eyJNTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExMUUxMUUxMUUxMUUxMUUxMUUxMUVpNTExRTExMUUxMUUxMUUxMUUxMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTExRTExRTExRTExRTExRTExMUUxMTFFMTFFaIjoiMiIsIk1MTFFMTFFMTFFMTFFMTExRTExRTExRTExRTExRTExRTExRTExMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUVpNTExRTExRTExRTExR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MTFFMTFFMTExRTExRTExRTExRTExRTExMUVoiOiJ4IiwiTUxMUUxMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFaTUxMUUxMUUxMUUxMUUxMUUxMTFFMTFFMTFFMTFFMTFFMTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExMUUxMUUxMUUxMUUxMUVoiOiJNIiwiTUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUVpNTExRTExRTExRTExRTExRTExRTExRTExMUUxMUUxMUUxMTFFMTExRTExRTExRTExRTExRWk1MTFFMTFFMTFFMTFFMTExMTFFMTExRTExRTExMUUxMUUxMUUxMTFFMTFFMTFFMTFFMTFFMWk1MTFFMTFFMTFFMTFFMTExRTExMUUxMTFFMTFFaIjoicCIsIk1MTFFMTExRTExRTExRTExMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMTFFMTFFaTUxMUUxMUUxMTFFMTFFMTFFMTFFMTFFMTExRTExRTExMUUxMTExRTExRTExMUUxMUUxMUUxMUUxMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFaIjoiZiIsIk1MTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTExRTExRTExRTExRTExRTExMUUxMUUxMUUxMUVpNTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExMUUxMUUxMUUxMTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRWiI6IkUiLCJNTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRWk1MTFFMTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRWiI6Im4iLCJNTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRWk1MTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFF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xMUUxMUUxMUVoiOiJCIiwiTUxMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFaTUxMUUxMUUxMUUxMUUxMUUxMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFaIjoiSCIsIk1MTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTExRTExRTExRTExRWk1MTFFMTFFMTFFMTFFMTFFMTFFMTExMUUxMUUxMUUxMUUxMUUxMUUxMTFFMTFFMTFFMTFFMTFpNTExMWiI6InIiLCJNTExRTExRTExRTExRTExRTExRTExRTExMUUxMUVpNTExRTExMUUxMUUxMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTExRTExRWiI6InkiLCJNTExRTExRTExRTExRTExRTExRTExRTExRTExMUUxMUUxMUUxMUUxMUUxMTFFMTFFMTFFaTUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMTFFMTFFMTFFMTExMTFFMTFFMTExRTExRTExRTExRTExRTExRTExRTExRWiI6InUiLCJNTExRTExRTExRTExRTExRTExRTExRTExRTExMUUxMUUxMUUxMUUxMUUxMUVpNTExRTExRTExaTUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMTFFMTFFMTExRTExRTExRTExRTExRTExMUUxMTExRTExRWk1MTExRTExRTExRTExRTExRTExRTExRWiI6ImoiLCJNTExRTExRTExMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUVpNTExRTExRTExRTExRTExRTExRTExMUUxMTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExMTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRWiI6IlMiLCJNTExMUUxMUUxMUUxMUUxMUUxMUUxMTFFMTFFMTFFMTFFMTFFMTExRTExRTExRTExRTExRTExRTExRTExRTExRWk1MTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTExMTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExMUUxMUUxMTExRTExRTExRTExMUUxMUVoiOiJzIiwiTUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUVpNTExRTExRTExRTExMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUVoiOiJDIiwiTUxMUUxMUUxMUUxMTFFMTFFMTFFMTFFMTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExMUUxMUUxMUVpNTExRTExRTExRTExRTExMUUxMUUxMUUxMUUxMUUxMUUxMUUxMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTExRTExRTExRTExRTExRTExRTExRTExMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMTFFMTFoiOiJHIiwiTUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUVpNTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRWk1MTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTExRWk1MTFFMTFFMTFFMTFFMTFFMTFFMTFFMTExRWiI6ImIiLCJNTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRTExRWk1MTFFMTFFMTFFMTFFMTFFMTFFMTFFMTExRTExRTExRTExRTExRTExRTExRTExRTExRTExMUUxMUUxMUUxMUUxMUUxMTFFMTFFaIjoiaCIsIk1MTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMWk1MTFFMTExRTExRTExRTExRTExRTExRT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FMTFFMTFFMTFFMTFFMTFFMTFFMTExRTExRTExRTExRTExMUUxMUUxMUUxMUUxMUUxMUUxMTFFaTUxMUUxMUUxMUUxMUUxMUVpNTExRTExMTFFMTFFMTFFaIjoiZSIsIk1MTExRTExRTExRTExRTExRTExRTExRTExRTExRWk1MTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTExRTExRTExRTExRTExaIjoiWSIsIk1MTFFMTFFMTExRTExRTExRTExRWk1MTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFMTFFaTUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMTFFMTFFMTFFMTFFMTFFaTUxMUUxMUUxMUUxMUUxMUUxMUUxMUUxMTFFaIjoiUCJ9"
    
    var parsed_model = JSON.parse(atob(model))
    var parser = new DOMParser();
    async function go({state, age, vaccine, type, n, mode, searchIntervalInSeconds, appointmentSlot, searchType='districts', pincodes=[], districts=[], runs=1, skipDays=1, weeks=1}) {
        try {
            console.log({runs})
            var foundSlot = false
            for (var iter=0; iter < runs; iter++) {
                COWIN_BOT_ITER = iter
                console.log({STOP_BOT})
                if (STOP_BOT) {
                  STOP_BOT = false
                  COWIN_BOT_RUNNING = false
                  break
                }
                chrome.runtime.sendMessage({iter});
                if (!state) return
                // var script = document.createElement('script');script.src = "https://code.jquery.com/jquery-3.4.1.min.js";document.getElementsByTagName('head')[0].appendChild(script);
                await sleep(300)
                if (searchType === "districts") {
                    if ($("mat-label:contains('Select State')").length === 0) {
                        $(".status-switch")[0].click()    
                    }
                    if (iter === 0) {
                        console.log("Selecting State", state)
                        await sleep(500)
                        $("mat-select")[0].click()
                        await sleep(1000)
                        $(".mat-option-text").each( (i, e) => { if ($(e).text().trim() === state) $(e).click() })
                        await sleep(500)
                        console.log("Waiting for districts to load")
    
                        do {
                            $("mat-select")[1].click()
                            await sleep(100)
                            district_options = $(".mat-option-text")
                            if (districts.length == 0) {
                                districts = $(".mat-option-text").map((x, e) => $(e).text())
                            }
                        } while (district_options.length === 0)
                    }
                    console.log(district_options.length, " Districts loaded")
                    console.log("Search across districts: ", districts)
                } else {
                    if ($("mat-label:contains('Enter your PIN')").length === 0) {
                        $(".status-switch")[0].click()    
                    }
                }
                
                const search_queries = searchType === "districts" ? districts : pincodes;
                for (i = 0; i < search_queries.length; i++) {
                    if (STOP_BOT) {
                      STOP_BOT = false
                      COWIN_BOT_RUNNING = false
                      return
                    }
                    if (searchType === "districts") {
                        if (iter === 0 || search_queries.length > 1) {
                            $("mat-select")[1].click()
                            await sleep(100)
                            $(".mat-option-text").each( (_, dEle) => { 
                                if ($(dEle).text().trim().toLowerCase() === districts[i].trim().toLowerCase()) {
                                    $(dEle).click() 
                                }
                            })
                        }
                        $(".district-search")[0].click()
                    } else {
                        $($("input[formcontrolname='pincode']")[0]).val(pincodes[i])
                        $("input[formcontrolname='pincode']")[0].dispatchEvent(new Event("input", { bubbles: true }));
                        await sleep(100)
                        $(".pin-search-btn")[0].click()
                    }
                    var week = 0
                    do {
                        if (week > 0) {
                            console.log("NEXT WEEK")
                            $(".carousel-control-next-icon")[0].click()
                        }
                        await sleep(100)
                        var j = 0
                        while (true) {
                            list = $("mat-selection-list mat-list-option")
                            not_available = $(".available-para")
                            if (list.length > 0 || not_available.length > 0) {
                                console.log("Response received")
                                break
                            }
                            j += 1
                            if (j >= 10) {
                                break
                            }
                            await sleep(500)
                        }
                        console.log({list, not_available})
                        if ((age || vaccine || type) && (week == 0)) {
                            console.log("Setting filters", {week})
                            $("div.agefilterblock label").each( (i, e) => { if ([age, vaccine, type].indexOf($(e).text().trim()) >= 0) $(e).click() })
                            await sleep(100);
                        }
                        foundSlot = false
                        var slotRows = $("ul.slot-available-wrap") || []
                        for (var ii = 0; ii < slotRows.length; ii++) {
                            var e = $(slotRows[ii]);
                            var isSlotBooked = true
                            var slots = $(e).find("li a")
                            for (var g = 0; g < slots.length; g++) {
                                if (week == 0 && g < skipDays) {
                                    continue
                                }
                                var slot = $(slots[g])
                                if ((parseInt($(slot).text().trim()) || 0) >= n) {
                                    isSlotBooked = false
                                    if (mode === 1) {
                                        $(slot).parents('.slots-box')[0].click()
                                        k = 0;
                                        while (k<=5) {
                                            if ($("ion-button.time-slot").length > 0) {
                                                break
                                            }
                                            k++;
                                            await sleep(300)
                                        }
                                        if ($("ion-button.time-slot").length > 0) {
                                            foundSlot = true
                                            chrome.runtime.sendMessage({"status": "slot_found"})
                                            console.log("HERE")
                                            break
                                        }
                                        
                                    }
                                }
                            }
                            if (isSlotBooked) {
                                // $(e).parents('.mat-list-text')[0].remove()
                            }
                            if (foundSlot) {
                                break
                            }
                        }
                        if (foundSlot) {
                            break
                        } else {
                            // console.log("Waiting to go to next week")
                            week++
                        }
                    } while (week <= weeks)
                    if (!foundSlot) {
                        // go back X weeks
                        for (var w = 0; w < weeks; w++) {
                            console.log("Going back 1 week")
                            $(".carousel-control-prev-icon")[0].click()
                            j = 0
                            while (true) {
                                list = $("mat-selection-list mat-list-option")
                                not_available = $(".available-para")
                                if (list.length > 0 || not_available.length > 0) {
                                    console.log("Response received")
                                    break
                                }
                                j += 1
                                if (j >= 15) {
                                    break
                                }
                                await sleep(500)
                            }
                        }
                    }
                    if (foundSlot) {
                        try {
                            $("ion-button.time-slot")[appointmentSlot-1].click()
                        } catch (e) {
                            $("ion-button.time-slot")[0].click()
                        }
                        
                        var svg;
                        j = 0
                        while (j <= 15) {
                            try {
                                await sleep(350)
                                svg = parser.parseFromString(atob($("img#captchaImage").attr("src").split("base64,")[1]), "image/svg+xml");
                                break;
                            } catch (e) {
                                console.log(e)
                            }
                            j += 1;
                        }
                        
                        $(svg).find('path').each((_, p) => { if($(p).attr('stroke') != undefined) $(p).remove()})
                        vals = []
                        $(svg).find('path').each(
                            (_, p) => { 
                                idx = parseInt($(p).attr("d").split(".")[0].replace("M", ""))
                                vals.push(idx)
                            }
                        )
                        var sorted = [...vals].sort(function(a,b) { return a - b; })
                        var solution = ['', '', '', '', '']
                        
    
                        $(svg).find('path').each(
                            (idx, p) => { 
                                var pattern = $(p).attr('d').replace(/[\d\.\s]/g, "")
    
                                solution[sorted.indexOf(vals[idx])] = parsed_model[pattern]
                            })
                        await sleep(100)
                        $($(".captcha-style input")[0]).focus();
                        chrome.runtime.sendMessage({"status": "entering_captcha"});
                        for (var ii=0; ii<5; ii++) {
                            $($(".captcha-style input")[0]).val(solution.join("").substr(0, ii+1));
                            await sleep(100)
                            $(".captcha-style input")[0].dispatchEvent(new Event("keyup", { bubbles: true }));
                            await sleep(100)
                        }
                        await sleep(500)
                        $("ion-button.confirm-btn")[0].click()
                        chrome.runtime.sendMessage({"status": "loading"});
                        while(1) {
                            if (document.getElementsByClassName("thank-you-header").length > 0) {
                                chrome.runtime.sendMessage({"status": "appointment_successful"});
                                break
                            }
                            await sleep(500)
                        }
                    }
    
                    if (mode === 1 && foundSlot)
                        break
                    console.log("Waiting", searchIntervalInSeconds*1000)
                    await sleep(searchIntervalInSeconds*1000)
              }
              if (foundSlot && mode === 1) {
                  break
              } 
            }
        } catch (e) {
            console.error(e)
        }
        COWIN_BOT_RUNNING = false
        chrome.runtime.sendMessage({"status": "complete"});
    }
    
    
    chrome.runtime.onMessage.addListener(({args, stop, query}) => {
        console.log({args, stop, query})
        if (query) {
            chrome.runtime.sendMessage({iter: COWIN_BOT_ITER, running: COWIN_BOT_RUNNING});
        }
        if (args) {
          STOP_BOT = false
          if (!COWIN_BOT_RUNNING) {
              COWIN_BOT_RUNNING = true
              go(args)
          }
          
        }
        if (stop) {
          STOP_BOT = true
        }
    });
    
    
    
         
    
    
    
    
    }
    
    opened by Vishvajeet590 8
  • Vaccine name included in beneficiary even on cancellation - influences vaccine preference input

    Vaccine name included in beneficiary even on cancellation - influences vaccine preference input

    A condition arises where "preferred vaccine choice" is not offered anymore. When a appointment was cancelled (in this case it was auto cancelled by the system - appears to be some internal error), the beneficiary details list the vaccine name even though status indicates "Not Vaccinated". (snipped below) This leads to a condition where the program does not offer the choice of vaccination anymore and the vaccine (COVISHIELD in below snip) is chosen by default.

    Simple workaround was to save as json and edit out the vaccine and preference details from the json and rerun.

    An enhancement could be considered in automatically choosing the vaccine only if status is "Partially Vaccinated"

    beneficiary_dtls : +-------+----------------+---------------------------------+-----------+-------+----------------+ | idx | bref_id | name | vaccine | age | status | +=======+================+=================================+===========+=======+================+ | 1 | xxxxxxx | John | COVISHIELD | nn | Not Vaccinated | +-------+----------------+---------------------------------+-----------+-------+----------------+ | 2 | xxxxxxx | Snow .. | COVISHIELD | nn | Not Vaccinated | +-------+----------------+---------------------------------+-----------+-------+----------------+

    bug 
    opened by vinayd2 8
  • Re-scheduling of appointment

    Re-scheduling of appointment

    Hey buddy! Thanks a lot for your code, it's very helpful. I'm trying to understand if the code works for people who have already booked an appointment, but couldn't get vaccinated (technical issues in cowin sent me to non-functional vaccination centres, TWICE!). Would the code be able to re-schedule for people who already have a back-dated appointment?

    If not, could you give me a hint as to what part of the code I could modify to make it work?

    opened by aswinjayan94 8
  • Token is invalid issue

    Token is invalid issue

    After about 19 minutes when the code is running and giving me list of centers - it throws an issue Token is INVALID.. Next update in 1 seconds. OR press 'Ctrl + C' to refresh now.. Try for a new Token? (y/n Default y): Traceback (most recent call last): File "C:\Users\ZT258SH\Downloads\Python vaccine simulation\covid-vaccine-booking-main\src\covid-vaccine-slot-booking.py", line 114, in main() File "C:\Users\ZT258SH\Downloads\Python vaccine simulation\covid-vaccine-booking-main\src\covid-vaccine-slot-booking.py", line 97, in main tryOTP = input('Try for a new Token? (y/n Default y): ')

    Kindly help

    opened by HSJ161994 0
  • Script no longer works

    Script no longer works

    Looks like there are so many changes on cowin website on daily basis.

    1. You can only book slot for one person irrespective of how many members are added.
    2. No need of captcha.
    3. New centre does not show on website.

    Not sure if anyone will making any changes accordingly.

    opened by vivek076 0
  • update logic from 18+ to 18-44 - Issue #218

    update logic from 18+ to 18-44 - Issue #218

    Check if session['min_age_limit'] is 18. If 18, append to options only if min_age_booking is 44 or lower. if not 18, append to options since its filtered already

    Not the most efficient way to do it, but it should work

    opened by TanmayChhatbar 0
  • issue while opening the cdm

    issue while opening the cdm

    C:\Temp\covid-vaccine-booking-main>python src\covid-vaccine-slot-booking.py Traceback (most recent call last): File "C:\Temp\covid-vaccine-booking-main\src\covid-vaccine-slot-booking.py", line 5, in import requests, sys, argparse, os, datetime ModuleNotFoundError: No module named 'requests'

    opened by thanneruakhil 3
  • Added Appointment Slip Download Functionality and Code Re-structured

    Added Appointment Slip Download Functionality and Code Re-structured

    • Will Download Appointment Slip directly if appointment booked.
    • Code re-structured for better visibility and understanding.
    • Original PR #258 but changing due to conflict reasons.
    opened by dhhruv 0
Releases(v1.2)
DonLee Robot

🤖 𝐃𝐎𝐍 𝐋𝐄𝐄 𝐑𝐎𝐁𝐎𝐓 𝐕𝟐 🤖 👋 Hey Muhammed, Iam DonLee RoBoT Make me an admin for your group and channel then connect me.... 🎉 🙂 To build a

Muhammed 27 Dec 01, 2022
Find people to play tennis with.

40Love 40Love is a full-stack web application that helps tennis players find hits at public tennis courts. Players can select public courts on the map

Tanner Schmutte 27 Jun 08, 2022
A simple telegram voting bot based on the python-telegram-bot api.

A simple telegram voting bot based on the python-telegram-bot api. *To make it more easy to use, I might make a C++ code in the future so you don't ha

3 Sep 13, 2021
A python based all-in-one tool for Google Drive

gdrive-tools A python based all-in-one tool for Google Drive Uses For Gdrive-Tools ✓ generate SA ✓ Add the SA and Add them to TD automatically ✓ Gener

XcodersHub 32 Feb 09, 2022
Python Library for Accessing the Cohere API

Cohere Python SDK This package provides functionality developed to simplify interfacing with the Cohere API in Python 3. Documentation See the API's d

cohere.ai 42 Jan 03, 2023
Best Buy Bot used to add products to cart for purchase.

To Install the Best Buy Bot These instructions are for Mac users only. Clone this Repo to your machine. BestBuyBot Open in VScode. Is Python installed

Robert Estrella 1 Dec 11, 2021
Script que envia e-mails de denúncia para desativar número de WhatsApp.

SpamReport (Alpha) Este script foi feito apenas para uso educacional, não me responsabilizo por qualquer uso indevido. Version: 1.0 Alpha Ative essa o

Kiny-Kiny 83 Dec 20, 2022
A Python API to retrieve and read MLB GameDay data

mlbgame mlbgame is a Python API to retrieve and read MLB GameDay data. mlbgame works with real time data, getting information as games are being playe

Zach Panzarino 493 Dec 13, 2022
A modern,feature-rich, and async ready API wrapper for Discord written in Python

discord.io A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python. Key Features Modern Pythonic API using asyn

Vincent 18 Jan 02, 2023
A Python Script to scan through an Instagram account to find all the followers and followings.

Instagram Followers Scan A Python Script to scan through an Instagram account to find all the followers and followings. You can also get filtered list

Nityasmit Mallick 6 Oct 27, 2022
A Telegram bot written in python.

telegram_bot This bot is currently a beta project. Features A telegram bot which can: Send current COVID-19 cases/stats of Germany Send current worth

HuhnCares 1 Jan 11, 2022
OpenEmu Discord Rich Presence provided with Python!

A simple application that provides your current OpenEmu game as an RPC state in Discord via PyPresence. How to use Unzip and open the latest x86_64 ve

Deltaion Lee 6 May 30, 2022
Pycardano - A lightweight Cardano client in Python

PyCardano PyCardano is a standalone Cardano client written in Python. The librar

151 Dec 31, 2022
A beginner’s guide to train and deploy machine learning pipelines in Python using PyCaret

This model involves Insurance bill prediction, which was subsequently deployed on Heroku PaaS

1 Jan 27, 2022
This bot will automatically like and follow users that post under a specified hashtag

Instagram-bot This bot will automatically like and follow users that post under a specified hashtag Dependencies Java JDK Selenium Updated version of

Makana Edwards 1 Nov 04, 2021
Best Buy purchase bot

B3 Best-Buy-Bot. Written in Python NOTICE: Don't be a disgrace to society. Don't use this for any mass buying/reselling purposes. About B3 is a bot th

Dogey11 8 Aug 15, 2022
Contrastive Language-Audio Pretraining

CLAP Contrastive Language-Audio Pretraining In due time this repo will be full of lovely things, I hope. Feel free to check out the Issues if you're i

Charles Foster 83 Dec 01, 2022
The Python SDK for the BattleshAPI game

BattleshAPy The Python SDK for the BattleshAPI game Installation This library will be eventually going on PyPI, but until then, simply clone or downlo

Christopher 0 Apr 18, 2022
ShoukoKomiRobot - An anime themed telegram bot that can convert telegram media

ShoukoKomiRobot • 𝕎𝕣𝕚𝕥𝕥𝕖𝕟 𝕀𝕟 Python3 • 𝕃𝕚𝕓𝕣𝕒𝕣𝕪 𝕌𝕤𝕖𝕕 Pyrogram

25 Aug 14, 2022
Unlimited Filter Telegram Bot 2

Mother NAther Bot Features Auto Filter Manuel Filter IMDB Admin Commands Broadcast Index IMDB search Inline Search Random pics ids and User info Stats

LɪᴏɴKᴇᴛᴛʏUᴅ 1 Oct 30, 2021