Ron Savage > WWW-Scraper-Wikipedia-ISO3166-2.00 > WWW::Scraper::Wikipedia::ISO3166::Database::Import

Download:
WWW-Scraper-Wikipedia-ISO3166-2.00.tgz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 2.00   Source  

NAME ^

WWW::Scraper::Wikipedia::ISO3166::Database::Import - Part of the interface to www.scraper.wikipedia.iso3166.sqlite

Synopsis ^

See "Synopsis" in WWW::Scraper::Wikipedia::ISO3166.

Description ^

Documents the methods used to populate the SQLite database, www.scraper.wikipedia.iso3166.sqlite, which ships with this distro.

See "Description" in WWW::Scraper::Wikipedia::ISO3166 for a long description.

Distributions ^

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.

Constructor and initialization ^

new(...) returns an object of type WWW::Scraper::Wikipedia::ISO3166::Database::Import.

This is the class's contructor.

Usage: WWW::Scraper::Wikipedia::ISO3166::Database::Import -> new().

This method takes a hash of options.

Call new() as new(option_1 => value_1, option_2 => value_2, ...).

Available options (these are also methods):

o code2 => $2_letter_code

Specifies the code2 of the country whose subcountry page is to be downloaded.

Methods ^

This module is a sub-class of WWW::Scraper::Wikipedia::ISO3166::Database and consequently inherits its methods.

check_downloads()

Report what country code files have not been downloaded, after parsing ISO_3166-1.html. This report is at the 'debug' level.

Also, report if any files are found in the data/ dir whose code does not appear in ISO_3166-1.html. This report is at the 'warning' level'.

code2($code)

Get or set the 2-letter country code of the country or subcountry being processed.

Also, code2 is an option to "new()".

new()

See "Constructor and initialization".

populate_countries()

Populate the countries table.

populate_subcountry()

Populate the subcountries table, for 1 subcountry.

Warning. The 2-letter code of the subcountry must be set with $self -> code2('XX') before calling this method.

populate_subcountries()

Populate the subcountries table, for all subcountries.

FAQ ^

For the database schema, etc, see "FAQ" in WWW::Scraper::Wikipedia::ISO3166.

References ^

See "References" in WWW::Scraper::Wikipedia::ISO3166.

Support ^

Email the author, or log a bug on RT:

https://rt.cpan.org/Public/Dist/Display.html?Name=WWW::Scraper::Wikipedia::ISO3166.

Author ^

WWW::Scraper::Wikipedia::ISO3166 was written by Ron Savage <ron@savage.net.au> in 2012.

Home page: http://savage.net.au/index.html.

Copyright ^

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
syntax highlighting: