Git Product home page Git Product logo

cowin-vaccine-availability's Introduction

Python CLI Script to check CoWIN vaccination slot

This script can be used to check the availability of vaccination slots using CoWIN API. The program is inspired from cowin-vaccination-slot-availability and PyCowinAPI.

Usage

  • Clone the repository on your system.
  • Install the dependencies using pip3 install -r requirements.txt
  • Open CMD in root folder and run the Python script python main.py
  • Open csvjson.py in text editor and check for your near about district_id.

Current situation

  • Right now, details can only be found using district_id.
  • User can search using multiple district_id, invalid district_id will be shown to the user and will be ignored.
  • Minor bugs/code formatting issues will be there.

Demo

D:\Python\vaccination>python main.py
For which day you want to enquire for?
    0: Today
    1: Tomorrow
    2: Day after tomorrow and so forth

>>> 0

Choose your vaccine:
    1: COVAXIN
    2: COVISHIELD

>>> 1

Enter district codes (enter comma separated values): 505,506

[] is/are invalid code/s


Vaccine availability at ['Jaipur I', 'Jaipur II']
+-------------------------------------------------------------------------------------------------------------+
|                                             Availabilty Details                                             |
+------------+---------+-----------------+--------------------------------+-------------+---------+-----------+
|    DATE    | PINCODE |    BLOCK NAME   |              NAME              | AVAILABLITY | VACCINE | AGE LIMIT |
+------------+---------+-----------------+--------------------------------+-------------+---------+-----------+
| 12-05-2021 |  302005 |  Jaipur I Urban | Covaxin VidhanSabha Only Staff |      0      | COVAXIN |     45    |
| 12-05-2021 |  302017 | Jaipur II Urban |        UPHC Ward No. 46        |      0      | COVAXIN |     45    |
| 13-05-2021 |  302017 | Jaipur II Urban |     Fortis Hospital CVC 1      |      0      | COVAXIN |     18    |
| 13-05-2021 |  302018 | Jaipur II Urban |        Raghu Vihar Cvc         |      0      | COVAXIN |     45    |
| 13-05-2021 |  302020 |     Sanganer    |       Triveni Nagar Cvc        |      0      | COVAXIN |     45    |
| 12-05-2021 |  303007 |     Chakshu     |       Padampura Covaxin        |      0      | COVAXIN |     45    |
| 13-05-2021 |  303102 |   Virat Nagar   |    Covaxin BCMO VIRATNAGAR     |      0      | COVAXIN |     45    |
| 13-05-2021 |  303103 |     SHAHPURA    |      BCMO Office Shahpura      |      0      | COVAXIN |     45    |
| 12-05-2021 |  303104 |     SHAHPURA    | Ayurvedic Hospital MANOHARPUR  |      0      | COVAXIN |     45    |
| 12-05-2021 |  303301 |      Bassi      |          Tunga Covxin          |      0      | COVAXIN |     45    |
| 13-05-2021 |  303338 |     Sambhar     |    Phulera Railway Covexine    |      0      | COVAXIN |     45    |
| 12-05-2021 |  303903 |     Chakshu     |        KADERA Covaxine         |      0      | COVAXIN |     45    |
| 12-05-2021 |  303903 |     Chakshu     |        Titriya Covaxin         |      0      | COVAXIN |     45    |
| 12-05-2021 |  342601 |      Bassi      |      Sambhariya Covexine       |      0      | COVAXIN |     45    |
+------------+---------+-----------------+--------------------------------+-------------+---------+-----------+

Issues

For some reason findByDistrict is not working for certain districts and dates


Contributions

Feel free to add to the current project. Further API call methods can be found on API Setu.


Social

cowin-vaccine-availability's People

Contributors

sahiljhawar avatar

Watchers

 avatar

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.