Wikipedia divisions
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, (*1)
To execute run the command in shell:, (*2)
php parse.php
The results are saved in the files:, (*3)
result/divisions.csv
result/subdivisions.csv
The first column is a country ISO-3166-1 code, (*4)
Example of parsed urls:, (*5)
- https://en.wikipedia.org/wiki/ISO_3166-2:FR
- https://en.wikipedia.org/wiki/ISO_3166-2:GB
- https://en.wikipedia.org/wiki/ISO_3166-2:US
Division names
Parser to get translated names of divisions from Wikipedia:, (*6)
To execute run the command in shell, (*7)
php parse-names.php
The result is saved in the file:, (*8)
result/names.csv
Additional
Parser for country divisions from Geoname:
https://github.com/tigrov/geoname-divisions, (*9)
License
MIT, (*10)