The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 1.04 - 2016-05-10

  • Rename t/load.t to t/report.t, and make it run scripts/report.statistics.pl for a real test.
  • Update pre-reqs since t/report.t uses Capture::Tiny.
  • Reformat lines in this file to be <= 100 chars wide, as per my new policy.

Documentation

Export the SQLite database as CSV
Export the SQLite database as HTML
Get http://en.wikipedia.org/wiki/ISO_3166-2.html & the 3-letter code page
Get all country pages from https://en.wikipedia.org/wiki/List_of_FIPS_region_codes_(A-C) etc.
Get all country pages from http://statoids.com/.
Get http://en.wikipedia.org.wiki.ISO_3166-2.$code2.html
Get http://en.wikipedia.org.wiki.ISO_3166-2.$code2.html for all missing $code2
Parse en.wikipedia.org.wiki.ISO_3166-2.html
Parse data/List_of_FIPS_region_codes_A-C.html etc
Parse en.wikipedia.org.wiki.ISO_3166-2.$code2.html for all missing $code2
Parse en.wikipedia.org.wiki.ISO_3166-2.$code2.html
Report some stats about the SQLite database

Modules

Gently scrape Wikipedia for ISO3166-2 data
The interface to www.scraper.wikipedia.iso3166.sqlite
Create/drop tables in www.scraper.wikipedia.iso3166.sqlite
Download various pages from Wikipedia
Export www.scraper.wikipedia.iso3166.sqlite as CSV and HTML
Part of the interface to www.scraper.wikipedia.iso3166.sqlite