Skip to content

Conversation

@azeem110201
Copy link

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

added download option instead of using email.

@aahnik
Copy link

aahnik commented May 7, 2021

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

@aahnik
Copy link

aahnik commented May 7, 2021

this way of selecting age is great and fixes #11

image

@aahnik
Copy link

aahnik commented May 7, 2021

hi @azeem110201 , is it running on you machine ?

i keep getting

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

@azeem110201
Copy link
Author

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
Copy link
Author

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

@aahnik
Copy link

aahnik commented May 7, 2021

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

push the new commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants