ip-geo-base-ru - retrieve DBs from ipgeobase.ru and import them into DB
ip-geo-base-ru -h ip-geo-base-ru --dsn 'dbi:SQLite:/path/to/my.db' --create ip-geo-base-ru --dsn 'dbi:SQLite:/path/to/my.db' ip-geo-base-ru [-d,--dsn <dsn>] [-u,--user <db user>] [-p,--password <db password>] [-t,--table <db table>] [--create] [--source <URL>] [--coordinates-source]
Script fetches information about IP blocks and locations from http://ipgeobase.ru and imports data into a database table.
-h, --help - show help and exit
-d, --dsn - the only mandatory option - data base connection string. Syntax described in "DBI", example 'dbi:mysql:mydb'.
-u, --user, -p, --password - credentials that should be used to connect to the DB. Default values are empty.
-t, --table - name of the table in the database where data should be stored, default value is 'ip_geo_base_ru'.
--create - use this to create table in the DB for the first time.
--source - URL of the file on the site, default is http://ipgeobase.ru/files/db/Main/geo_files.tar.gz.
To install Geo::IP::RU::IpGeoBase, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::IP::RU::IpGeoBase
CPAN shell
perl -MCPAN -e shell install Geo::IP::RU::IpGeoBase
For more information on module installation, please visit the detailed CPAN module installation guide.