iso-country-parser

Parses ISO 3166 alpha-3 country codes from WIKI page into structured output
Usage
Download
Choose one of the following options:
When running Windows
- Extract win64 folder contents from downloaded release.tar.gz
- Run application:
parser.exe
When running Linux
- Extract linux64 folder contents from downloaded release.tar.gz
- Run application:
./parser
Compile and install from source code
- Install Golang https://golang.org/
- Download source and compile binaries:
$ go get -u github.com/surmus/iso-country-parser/cmd/parser
- Run application (NB: check that GOBIN env variable is set and added to the PATH)
Linux
$ parser
CLI options
$ ./parser help
NAME:
ISO 3166 countries Wikipedia page parser - Parses ISO 3166 alpha-3 country codes from WIKI page into structured output
USAGE:
parser [global options] command [command options] [arguments...]
VERSION:
v1.0.2
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--page-id value Wikipedia page ID from https://en.wikipedia.org (default: "List_of_ISO_3166_country_codes")
--template value Template string for formatting the result, example:
'({CODE}, {NAME}) ' will produce:
'(USA, The United States of America) (EST, Estonia)'
--file value filepath the results are written into, example: --file C:\hello.txt
--verbose Debug application
--help, -h show help
--version, -v print the version