GithubHelp home page GithubHelp logo

ayushi7rawat / cowin-vaccine-notifier Goto Github PK

View Code? Open in Web Editor NEW
106.0 6.0 61.0 2.76 MB

Automated Python Script to retrieve vaccine slots availability and get notified when a slot is available.

License: MIT License

Python 100.00%
python python3 covid-19 covid19 covid coronavirus vaccination vaccine-tracker vaccine-availability notifier

cowin-vaccine-notifier's Introduction

Automated Python Script to retrieve vaccine slots availability and get notified when a slot is available.

pre requisite

pip install requests pygame

you can find a step by step walkthrough in my Blog

You can find a video tutorial at YouTube for the same

Watch the video

LICENSE:

Copyright (c) 2020 Ayushi Rawat

This project is licensed under the MIT License

Let's connect! Find me on the web.



If you have any Queries or Suggestions, feel free to reach out to me.

Show some  ❤️  by starring some of the repositories!

cowin-vaccine-notifier's People

Contributors

ameyjadiye avatar ayushi7rawat avatar dhamodaran-pandiyan avatar imneonizer 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  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  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  avatar  avatar

cowin-vaccine-notifier's Issues

Mismatch of results

My code is running fine but printing two different results for the same center

image

Cowin API is not Realtime!

Hello. I had tried to make a similar Vaccine Notifier using the COWIN's public API. However, the API is not realtime anymore. According to the official website, they cache the data for 30 minutes. However, according to my experience and my testing, the data is being cached for more than 30 mins (often for more than 5-6 hours).

Capture

Unstructured format of the script

print("Starting search for Covid vaccine slots!")

The script does it's job but code is not maintainable. The script could be refactored to follow an OOP approach and could be written as a Class.

Benefits of structuring the script as a Class :

  1. Easier to write specs (unit test cases).
  2. Easier to publish the Class file as a library that could be directly imported into other projects.

Can be modified with OOP approach and converted to CLI

The script is working fine, however, it's not maintainable if code goes on steroids

Suggestions

  • OOP approach can be followed and there can be different functions for each task
  • Can be converted into a CLI tool
  • Hardcoded values can be changed to user inputs

Benefits

  • Maintainable code
  • If code goes on steroids, there won't be an issue as each task has separate funcs
  • No need to run via vs code

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.