A daily GitHub Action that checks for updates to various codelists, and sends pull requests when something changes.
If a codelist is covered by the codelist updater, this will allow the relevant codelist to be kept up to date in a very streamlined and automated way (updates are made as pull requests to the relevant repository, so that a human can verify and approve them).
There are two codelist repositories that we can update to:
Codelists from both of these repositories are visible in the replicated codelists interface: codelists.codeforiati.org
To run an individual importer, use e.g.:
python -m importers.currency
It is now relatively straightforward to add a new codelist here (we're trying to gradually make it even easier).
We generally encourage you to do any scraping or wrangling outside of this repository, and then make pre-processed files available for the codelist updater to check and import nightly if there are any updates.
For example, if you need to scrape a web page to keep a codelist up to date, you can do this on morph.io and then access that data via the morph.io API.
Currently, this is the process:
codelist-item
elements. The easiest way to do this is to copy and rename one of the files in the templates
folder.templates
folder.importers
folder.