WWW::Scraper::Wikipedia::ISO3166::Database::Export - Export www.scraper.wikipedia.iso3166.sqlite as CSV and HTML
See "Synopsis" in WWW::Scraper::Wikipedia::ISO3166.
Documents the methods end-users need to export the SQLite database, www.scraper.wikipedia.iso3166.sqlite, which ships with this distro, as either CSV or HTML.
See scripts/export.as.csv.pl and scripts/export.as.html.pl.
The input to these scripts is shipped as share/www.scraper.wikipedia.iso3166.sqlite.
The output of these scripts is shipped as:
This file is on-line at: http://savage.net.au/Perl-modules/html/WWW/Scraper/Wikipedia/ISO3166/iso.3166-2.html.
This module is available as a Unix-style distro (*.tgz).
See http://savage.net.au/Perl-modules.html for details.
See http://savage.net.au/Perl-modules/html/installing-a-module.html for help on unpacking and installing.
new(...) returns an object of type WWW::Scraper::Wikipedia::ISO3166::Database::Export.
WWW::Scraper::Wikipedia::ISO3166::Database::Export
This is the class's contructor.
Usage: WWW::Scraper::Wikipedia::ISO3166::Database::Export -> new().
WWW::Scraper::Wikipedia::ISO3166::Database::Export -> new()
This method takes a hash of options.
Call new() as new(option_1 => value_1, option_2 => value_2, ...).
new()
new(option_1 => value_1, option_2 => value_2, ...)
Available options (these are also methods):
Specify the name of the CSV file to which country data is exported.
Default: 'countries.csv'.
Specify the name of the CSV file to which subcountry data is exported.
Default: 'subcountries.csv'.
Specify the name of the HTML file to which country and subcountry data is exported.
See htdocs/assets/templates/www/scraper/wikipedia/iso3166/iso3166.report.tx for the web page template used.
*.tx files are processed with Text::Xslate.
Default: 'iso.3166-2.html'.
This module is a sub-class of WWW::Scraper::Wikipedia::ISO3166::Database and consequently inherits its methods.
Export the SQLite database to 2 CSV files.
Export the SQLite database to 1 HTML file.
Builds part of a HTML table, and returns an arrayref of arrayrefs of hashrefs suitable for Text::Xslate.
Get or set the name of the CSV file to which country data is exported.
Also, country_file is an option to "new()".
See "Constructor and initialization".
Get or set the name of the CSV file to which subcountry data is exported.
Also, subcountry_file is an option to "new()".
Get or set the name of the HTML file to which country and subcountry data is exported.
Also, web_page_file is an option to "new()".
For the database schema, etc, see "FAQ" in WWW::Scraper::Wikipedia::ISO3166.
See "References" in WWW::Scraper::Wikipedia::ISO3166.
Email the author, or log a bug on RT:
https://rt.cpan.org/Public/Dist/Display.html?Name=WWW::Scraper::Wikipedia::ISO3166.
WWW::Scraper::Wikipedia::ISO3166 was written by Ron Savage <ron@savage.net.au> in 2012.
WWW::Scraper::Wikipedia::ISO3166
Home page: http://savage.net.au/index.html.
Australian copyright (c) 2012 Ron Savage.
All Programs of mine are 'OSI Certified Open Source Software'; you can redistribute them and/or modify them under the terms of The Artistic License, a copy of which is available at: http://www.opensource.org/licenses/index.html
To install WWW::Scraper::Wikipedia::ISO3166, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Scraper::Wikipedia::ISO3166
CPAN shell
perl -MCPAN -e shell install WWW::Scraper::Wikipedia::ISO3166
For more information on module installation, please visit the detailed CPAN module installation guide.