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

Not able to fetch data in streamlit app #9

Open
azeem110201 opened this issue May 5, 2021 · 7 comments
Open

Not able to fetch data in streamlit app #9

azeem110201 opened this issue May 5, 2021 · 7 comments

Comments

@azeem110201
Copy link

The program is unable to fetch the details of vaccines available in any district

@bhavsarpratik
Copy link
Owner

There is some issue with the API. It has stopped working. Is there any other API?

@azeem110201
Copy link
Author

https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByDistrict?district_id=512&date=05-05-2021

I am creating a similar application using the same API and it's working fine. I just change the district_id and date based on my convenience

@bhavsarpratik
Copy link
Owner

The API works on my local but not on https://share.streamlit.io where the app is hosted

@azeem110201
Copy link
Author

Try hosting it on heroku platform.

@aahnik
Copy link

aahnik commented May 7, 2021

The API works on my local but not on https://share.streamlit.io where the app is hosted

i think streamlit does not allow connections to all sites. Same problem with python anywhere.

@atulmits
Copy link

atulmits commented May 9, 2021

Can this code made in such a way, that we input all the filters to script to run in loop (backend) and it gives a pop-up or whatsapp message as soon as the vaccine is available?
I tried and I could fix my district code and age. But could not run script in loop and generate pop up.

@aahnik
Copy link

aahnik commented May 9, 2021

hi @atulmits, WhatsApp is hell. You may check out wappdriver, which no longer maintained. WhatsApp does not have a free official API.

Telegram, Discord etc has a free API, and great libraries like telethon and discord.py

and why you want a loop? it can be run using a cron job, at an interval set by you. run it every hour. if you run too much, the API server may ban your IP.

email is great, and simple.

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

No branches or pull requests

4 participants