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)
Ghostbuster - Eliminate dangling elastic IPs by performing analysis on your resources within all your AWS accounts

Table of Contents Table of Contents Ghostbuster The problem Project Features Ins

Assetnote 182 Dec 24, 2022
⚡ Simple mass dm selfbot for Discord written in python3.

Zapp Simple mass dm selfbot for Discord written in python3. Warning. This project was made for educational purposes only! I take no responsibility for

Ѵιcнч 34 Nov 01, 2022
Discord Voice Call DoS

VC DoS Simple, effective Discord DM/GC voice call Denial of Service. How to Use & FAQ 1. Download the script (obviously). 2. In CMD prompt, find the l

Roover 4 Feb 28, 2022
Cookiecutter templates for Serverless applications using AWS SAM and the Rust programming language.

Cookiecutter SAM template for Lambda functions in Rust This is a Cookiecutter template to create a serverless application based on the Serverless Appl

AWS Samples 24 Nov 11, 2022
Discord Blogger Integration Using Blogger API

It's a very simple discord bot created in python using blogger api in order to search and send your website articles in your discord chat in form of an embedded message. It's pretty useful for people

Owen Singh 8 Oct 28, 2022
A python package for AxisVM

PyAxisVM The package is under development. Follow us on social media, where we'll announce the first release! Overview The PyAxisVM project offers a h

AxisVM - InterCAD 8 Nov 19, 2022
AWS-serverless-starter - AWS Lambda serverless stack via Serverless framework

Serverless app via AWS Lambda, ApiGateway and Serverless framework Configuration

Bəxtiyar 3 Feb 02, 2022
alpaca-trade-api-python is a python library for the Alpaca Commission Free Trading API.

alpaca-trade-api-python is a python library for the Alpaca Commission Free Trading API. It allows rapid trading algo development easily, with support for both REST and streaming data interfaces

Alpaca 1.5k Jan 09, 2023
CRUD database for python discord bot developers that stores data on discord text channels

Discord Database A CRUD (Create Read Update Delete) database for python Discord bot developers. All data is stored in key-value pairs directly on disc

Ankush Singh 7 Oct 22, 2022
A simple MTProto-based bot that can download various types of media (>10MB) on a local storage

TG Media Downloader Bot 🤖 A telegram bot based on Pyrogram that downloads on a local storage the following media files: animation, audio, document, p

Alessio Tudisco 11 Nov 01, 2022
🐍 The official Python client library for Google's discovery based APIs.

Google API Client This is the Python client library for Google's discovery based APIs. To get started, please see the docs folder. These client librar

Google APIs 6.2k Jan 08, 2023
Telegram bot with various Sticker Tools

Sticker Tools Bot @Sticker_Tools_Bot A star ⭐ from you means a lot to us! Telegram bot with various Sticker Tools Usage Deploy to Heroku Tap on above

Stark Bots 20 Dec 08, 2022
This is a story bot, that will scrape stories from r/stories subreddit and convert it into an Audio File.

Introduction This is a story bot, that will scrape stories from r/stories subreddit and convert it into an Audio File. Installation pip install -r req

Yasho 11 Jun 30, 2022
Telegram Bot to check covid vaccine slot availability on CoWin site

Cowin Assist Telegram Bot Check the bot here @cowinassistbot. This is a simple Telegram bot to Check slots availability Get an alert when slots become

32 Jun 21, 2022
A Discord bot that allows you to rapidly deploy Minecraft servers seamlessly and painlessly from Discord.

Lyra - rapidly and painlessly deploy Minecraft servers from Discord Lyra lets you deploy Minecraft server instances via Docker with control through a

1 Dec 23, 2021
A telegram bot to track whales activities on multiple blockchains.

Telegram Bot : Whale Watcher A straightforward telegram bot written in python to track whales activity on multiple blockchains, using whale-alert API

Laurenz Bougan 1 Dec 10, 2021
A Discord webhook spammer made in Python

A Python made Discord webhook spammer usually used for token loggers to spam them/delete them original by cattyn changes listed below.

2 Jan 12, 2022
PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to Reddit's API.

PRAW: The Python Reddit API Wrapper PRAW, an acronym for "Python Reddit API Wrapper", is a Python package that allows for simple access to Reddit's AP

Python Reddit API Wrapper Development 3k Dec 29, 2022
A Python Library to interface with Flickr REST API, OAuth & JSON Responses

Python-Flickr Python-Flickr is A Python library to interface with Flickr REST API & OAuth Features Photo Uploading Retrieve user information Common Fl

Mike Helmick 40 Sep 25, 2021
Customizable and open-sourced bot for a few private servers

MarlBot A private bot for controlling monkeys and turtles. Why does this bot exist? The bot exists as a general-purpose community bot for a select few

KR 1 Jan 18, 2022