Automated access to World Bank data and conversion to data packages.
World Bank World Development Indicators like: https://data.worldbank.org/indicator/GC.DOD.TOTL.GD.ZS
We have a script to automate access and data extraction for these.
- Downloading the metadata data
- Extracting metadata and data
- Converting to a Data Package
The script is python based and uses python 3.0. It has no dependencies outside of the standard library. Try it:
python scripts/get.py
# download and extract this indicator
python scripts/get.py https://data.worldbank.org/indicator/GC.DOD.TOTL.GD.ZS
You can get data in CSV, JSON and XML (default).
Per indicator:
https://api.worldbank.org/indicator/GC.DOD.TOTL.GD.ZS?format=csv
# for some reason json format just yields metadata
https://api.worldbank.org/indicator/GC.DOD.TOTL.GD.ZS?format=json
More elaborate queries via http://blogs.worldbank.org/opendata/first-steps-in-integrating-open-data:
http://api.worldbank.org/en/countries/KE;XF;XM/indicators/EN.ATM.CO2E.PC?date=1961:2011&format=csv
http://api.worldbank.org/en/countries/KE;XF;XM/indicators/EN.ATM.CO2E.PC?date=1961:2011&format=json
As a Data Wrangler I want to convert a world bank indicator into a tabular data package automatically.
- And keep it up to date ...
As a Data Wrangler I want to get existing world bank indicator as if it were a data package
- use data get
- use data info (?)
- use data cat