Skip to content

Instantly share code, notes, and snippets.

View sidd607's full-sized avatar
πŸ§‘β€πŸ’»

Siddartha Sekhar Padhi sidd607

πŸ§‘β€πŸ’»
View GitHub Profile
class Node:
def __init__ (self, info):
self.left = None
self.right = None
self.info = info
def addLeft(self, node):
self.left = node
def getLeft(self):
@sidd607
sidd607 / CowinQuery.py
Last active May 28, 2021 15:20
Python Script to keep querying the Cowin website to fetch available time slots
# Conditions
USE_PINCODES = False # FLAG to search by pincode or district
VACCINE_CHOICE = ["COVISHIELD", "COVAXIN"]
AGE_LIMIT = [18]
PINCODES_TO_SEARCH = ["110037"]
DISTRICT_CODES_TO_SEARCH = ["140","141","142","143","144","145","146","147","148","149","150"]
TIME_INTERVAL = 60 # in seconds
ALLOW_DESKTOP_NOTIFICATION = True # Requires additional libraries -> https://pypi.org/project/py-notifier/
DOSE1 = "available_capacity_dose1"
DOSE2 = "available_capacity_dose2"