Skip to content

Tigrov/wikipedia-divisions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Releases

No releases published

Packages

No packages published

Languages