Teal-Insights / r-wbids

R package to access and analyze World Bank International Debt Statistics (IDS)
https://teal-insights.github.io/r-wbids/
Other
3 stars 0 forks source link

Add `ids_bulk_download()` function as alternative to `ids_get()` #26

Closed christophscheuch closed 1 week ago

christophscheuch commented 1 week ago

@t-emery or @Reu-hub there is a page at the World Bank where there are individual Excel or CSV files for download - can you please provide the link? I can't find it anymore in my emails or other docs. I want to investigate how such a bulk download function might look like.

t-emery commented 1 week ago

Here is the link to the World Bank Data Catalog page for the IDS: https://datacatalog.worldbank.org/search/dataset/0038015

The fact that it is so un-intuitive to find is part of what we’re remedying in building this package.

I also added it to a “useful links” page on the repo wiki: https://github.com/Teal-Insights/r-wbids/wiki/Useful-Links

On Nov 1, 2024, at 10:20 AM, Christoph Scheuch @.***> wrote:

@t-emery https://github.com/t-emery or @Reu-hub https://github.com/Reu-hub there is a page at the World Bank where there are individual Excel or CSV files for download - can you please provide the link? I can't find it anymore in my emails or other docs. I want to investigate how such a bulk download function might look like.

— Reply to this email directly, view it on GitHub https://github.com/Teal-Insights/r-wbids/issues/26, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRHDFIDKW7GM6NVVBE645DZ6OE2PAVCNFSM6AAAAABRALGN7OVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYZDSMJTGY3TQNI. You are receiving this because you were mentioned.

Reu-hub commented 1 week ago

Additionally, there is a JSON file you may find useful in getting: 1) Resources - Individual links to each downloadable file (plus extension eg .xlsx). 2) Indicators - Information about series

Here is an R code to get resources and indicators:

ids_met <- jsonlite::fromJSON(txt = "https://datacatalogapi.worldbank.org/ddhxext/DatasetDownload?dataset_unique_id=0038015&version_id=")

resources <- ids_met[["resources"]] indicators <- ids_met[["indicators"]]