Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

commited changes in availability and streamli app #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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