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

Data source URL is invalid #10

Open
anuveyatsu opened this issue Dec 26, 2021 · 1 comment
Open

Data source URL is invalid #10

anuveyatsu opened this issue Dec 26, 2021 · 1 comment
Assignees

Comments

@anuveyatsu
Copy link
Member

anuveyatsu commented Dec 26, 2021

This URL doesn't return CSV data anymore - https://github.com/datasets/population/blob/master/scripts/process.py#L10

To add "this url" is http://api.worldbank.org/countries/all/indicators/SP.POP.TOTL?format=csv

Response is:

<wb:error xmlns:wb="http://www.worldbank.org">
<wb:message id="111" key="Invalid format">The requested response format was not found.</wb:message>
</wb:error>
@rufuspollock
Copy link
Member

@anuveyatsu it just looks like API is still there in general it is just they removed ?format=csv option and changed to downloadformat. Annoyingly though they now zip the file. Frankly i think the easiest would be just to use the json option and convert that over to whatever we need. Here's the JSON link:

http://api.worldbank.org/v2/countries/all/indicators/SP.POP.TOTL?format=json

Details

Specifically https://datahelpdesk.worldbank.org/knowledgebase/articles/898581 states:

Output Format: The API supports the following four output formats.

So CSV is no longer there ... However, they now have downloadformat:

Download Format: The API supports the following three download formats.

@anuveyatsu anuveyatsu self-assigned this Dec 30, 2021
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