2017 © Pedro Peláez
 

library wikipedia-divisions

Parser for country divisions from Wikipedia.

image

tigrov/wikipedia-divisions

Parser for country divisions from Wikipedia.

  • Friday, March 31, 2017
  • by Tigros
  • Repository
  • 1 Watchers
  • 2 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

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)

The Versions

31/03 2017

dev-master

9999999-dev

Parser for country divisions from Wikipedia.

  Sources   Download

MIT

by Sergei Tigrov

division state region province wikipedia subdivision