Ruby script that polls cowin server to notify availablity of vaccines.
Enviorment:
Bundler
, to install do gem install bundler
. Details at https://bundler.io
Steps
- Clone repo
cd
to repo, then dobundle install
- Script expects you pincode(-p), minimum age(-a) to search for and type(-t) of vaccine(
Free
orPaid
) eg.bundle exec ruby main.rb -t Free -a 18 -p 301001
. Dobundle exec ruby main.rb -h
for more help.
What happens when slot is found : Script speaks out 'Hi! Vaccine is available' once it finds some slots