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

curl requests for getting data #2

Open
adamkalis opened this issue Apr 7, 2020 · 4 comments
Open

curl requests for getting data #2

adamkalis opened this issue Apr 7, 2020 · 4 comments

Comments

@adamkalis
Copy link

curl 'https://covidapi.ismood.com/regions/?country_name=greece' -H 'Authorization: Basic ZmFkaWw6aXNjb3Y0NTZA'

curl 'https://covidapi.ismood.com/total-info/?country_name=greece' -H 'Authorization: Basic ZmFkaWw6aXNjb3Y0NTZA'

curl 'https://covidapi.ismood.com/daily-info/?country_name=greece' -H 'Authorization: Basic ZmFkaWw6aXNjb3Y0NTZA'

@kargig
Copy link
Owner

kargig commented Apr 7, 2020

is this a user of covid19-gr-json or are you suggesting to use this a source ?

@adamkalis
Copy link
Author

adamkalis commented Apr 10, 2020

Oops sorry I wasn't clear, I suggest use these data as source. they seem to be kind of official as these data are visualized in a frame at https://covid19.gov.gr/covid19-live-analytics/

@kargig
Copy link
Owner

kargig commented Apr 16, 2020

looks like they took the service down, curl requests return 500 for a few days now

oh well, yet another reason we need openly accessible data :)

@adamkalis
Copy link
Author

adamkalis commented Apr 16, 2020

:) I fully agree with the need of openly accessible data, it's a shame that you need to scrap them from pdfs.

By the way the service is still up, they've just added one extra check for the referrer so adding
-H 'Referer: https://covid19live.ismood.com/' on the curl commands will make them work again. So, the new curl commands are these:

curl 'https://covidapi.ismood.com/regions/?country_name=greece' -H 'Authorization: Basic ZmFkaWw6aXNjb3Y0NTZA' -H 'Referer: https://covid19live.ismood.com/'

curl 'https://covidapi.ismood.com/total-info/?country_name=greece' -H 'Authorization: Basic ZmFkaWw6aXNjb3Y0NTZA' -H 'Referer: https://covid19live.ismood.com/'

curl 'https://covidapi.ismood.com/daily-info/?country_name=greece' -H 'Authorization: Basic ZmFkaWw6aXNjb3Y0NTZA' -H 'Referer: https://covid19live.ismood.com/'

Just to be clear I suggest these as an alternative (semi-official) source for confirmation of the official data.

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

2 participants