oa-dl
v1.0.2
Published
Simple CLI for downloading OpenAddresses.io data
Downloads
5
Readme
openaddresses-download
Simple CLI for downloading OpenAddresses CSVs
To install
$ npm install oa-dl -g
You must have the appropriate AWS environment variables set to use this CLI. This will hopefully change soon.
Usage
$ oa-dl <command> [options]
Commands and Options:
ls Show all available processed CSVs
-h, --help Shows help
-f, --file <name-of-source.csv> Download a specific source CSV
-c, --country <country_iso_2> Download all CSVs for a country
-a, --all Downloads all OpenAddresses CSVs
-o <name_of_output_directory> Ouput directory (this directory will be placed in the working directory)
Examples
List files available for download
$ oa-dl ls -o out/
jp-shiga.csv
jp-shiga-tokyo.csv
us-dc.csv
us-va.csv
us-va-fairfax.csv
no.csv
pl-maloposki.csv
kr-seoul-mapogu-old.csv
...
Download specific files. For multiple files, use a comma separated list (no spaces)
$ oa-dl --file pl-slaskie.csv -o out/
$ oa-dl --file us-va-fairfax.csv,us-va-greene.csv
Download all files for a specific country (identified by the ISO-2 code). For multiple countries, use a comma separated list (no spaces)
$ oa-dl --country us -o out/
$ oa-dl --country pl,kr,za -o out/
Download all OpenAddresses CSVs
$ oa-dl -a -o out/