项目作者: kunalkdev

项目描述 :
Python script to sound alert for cowin slot availabilty based on pincode.
高级语言: Python
项目地址: git://github.com/kunalkdev/cowinByPin.git
创建时间: 2021-05-24T07:40:23Z
项目社区:https://github.com/kunalkdev/cowinByPin

开源协议:

下载


RUN SAMPLE:



python .\cowin.py

Enter Age Category 1. under 45 2. 45 and above : 1

Enter the PinCode in comma seperated e.g. single pincode 110011 - more than one 110011,110022,110023 : 122001

Vaccine preference - 0 for any, 1 for covishield, 2 for covaxin, 3 for sputnik : 1

Cost Preference - 0 for any, 1 for paid only, 2 for free only : 0

Enter 1 for dose1, 2 for dose2 alert : 2

Checking for dates -[‘24-05-2021’, ‘25-05-2021’, ‘26-05-2021’] dose -2 pincode(s) -[‘122001’] vaccine-COVISHIELD cost preference-any min age 18

2021-05-24 21:31:21.267308

name: Max Hospital

pincode: 122001

vaccine: COVISHIELD

fee_type: Paid

available: 19

available dose 1: 0

available dose 2: 19

date: 26-05-2021

!!!Plays sound for alert!!!

SETUP:

  1. place mp3 file put in same folder with python script - cowin.py.
  2. If you don’t have setup of python, recommend downloading anaconda package - https://www.anaconda.com/products/individual
  3. install playsound playsound - Ananconda powershell prompt - $ pip install playsound
  4. Go to folder having cowin.py - run python cowin.py
  5. Recommended to change power option to disable sleep - set sleep timer to never. So, that script always get cpu and keep running in case of inactivity of system too.

LIMITATIONS:

  1. There is a limit of 100 api calls per 5 mins per IP. As script run after every 3 seconds. Please run it only in 1 machine in one wifi.