This repo is to provide a convenient and quick source for lookup data for `ISO 1366-1` country codes. Most programmatic sources are behind a paywall, and the rest require you to manually parse them.
This data doesn't change too often, so you should be able to just grab one of the files in the data directory (or links below) and be good to go. If you want it to be fresh, you can clone the repo and run the scraper to refresh the files. The data in the current files was updated 2024-08-19 09:30:21.
Scraping is legal, but not always perceived well, so scrape at your own discretion. This ISO data doesn't change often, so scraping at build time is probably as frequent as you'd really need.
DDL
CREATE TABLE iso3166 (
`country_name` VARCHAR(255),
`alpha2` CHAR(2),
`alpha3` CHAR(3),
`numeric` CHAR(3)
);
DML
- iso3166_from_alpha2.pickle
- iso3166_from_alpha3.pickle
- iso3166_from_numeric.pickle
- iso3166_collection.pickle