tigrov/wikipedia-divisions

Parser for country divisions from Wikipedia.

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/tigrov/wikipedia-divisions

dev-master 2017-03-31 18:03 UTC

This package is auto-updated.

Last update: 2025-10-10 02:49:53 UTC


README

Parser to get list of country divisions and subdivisions with ISO-3166-2 codes in CSV format from https://en.wikipedia.org/wiki/ISO_3166-2

To execute run the command in shell:

php parse.php

The results are saved in the files:

result/divisions.csv
result/subdivisions.csv

The first column is a country ISO-3166-1 code

Example of parsed urls:

Division names

Parser to get translated names of divisions from Wikipedia:

To execute run the command in shell

php parse-names.php

The result is saved in the file:

result/names.csv

Additional

Parser for country divisions from Geoname:
https://github.com/tigrov/geoname-divisions

License

MIT