vaccine_availability icon indicating copy to clipboard operation
vaccine_availability copied to clipboard

commited changes in availability and streamli app

Open azeem110201 opened this issue 3 years ago • 6 comments

Changes made in availability.py and streamlit app Extra module used: base64

added download option instead of using email.

azeem110201 avatar May 05 '21 13:05 azeem110201

hi @azeem110201, it would be great if you share the screenshot/screencast of the new streamlit app after your changes.

aahnik avatar May 07 '21 14:05 aahnik

this way of selecting age is great and fixes #11

image

aahnik avatar May 07 '21 14:05 aahnik

hi @azeem110201 , is it running on you machine ?

i keep getting

JSONDecodeError: Expecting value: line 1 column 1 (char 0)

aahnik avatar May 07 '21 14:05 aahnik

Its throwing 403 error. Maybe we have to use some user-agents to get rid of it.

In [1]: import requests

In [2]: requests.get("https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByDistrict?district_id=582&date=07-05-2021").status_code Out[2]: 403

In [3]: requests.get("https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByDistrict?district_id=581&date=07-05-2021").status_code Out[3]: 403

azeem110201 avatar May 07 '21 14:05 azeem110201

Now it's working 😃. I added some headers to the request.get() arguments.

azeem110201 avatar May 07 '21 14:05 azeem110201

Now it's working . I added some headers to the request.get() arguments.

push the new commit

aahnik avatar May 07 '21 14:05 aahnik