WWW::Search::KacurCZ - Class for searching http://kacur.cz .
use WWW::Search::KacurCZ; my $obj = WWW::Search->new('KacurCZ'); $obj->native_query($query); my $maintainer = $obj->maintainer; my $res_hr = $obj->next_result; my $version = $obj->version;
native_setup_search($query)
Setup.
native_retrieve_some()
Get data.
# Pragmas. use strict; use warnings; # Modules. use Data::Printer; use WWW::Search::KacurCZ; # Arguments. if (@ARGV < 1) { print STDERR "Usage: $0 match\n"; exit 1; } my $match = $ARGV[0]; # Object. my $obj = WWW::Search->new('KacurCZ'); $obj->maximum_to_retrieve(1); # Search. $obj->native_query($match); while (my $result_hr = $obj->next_result) { p $result_hr; } # Output: # Usage: /tmp/1Ytv23doz5 match # Output with 'Čapek' argument: # \ { # author "Guillaume Apollinaire", # cover_url "http://kacur.cz/data/USR_001_OBRAZKY/small_196566.JPG", # old_price "2 000 Kč", # price "1 000 Kč", # publisher "Symposion", # title "Kacíř a spol" # url "http://kacur.cz/index.asp?menu=1123&record=140698", # }
Encode, LWP::UserAgent, Readonly, Text::Iconv, Web::Scraper, WWW::Search.
WWW::Search.
https://github.com/tupinek/WWW-Search-KacurCZ
Michal Špaček mailto:skim@cpan.org
http://skim.cz
BSD license.
0.01
To install WWW::Search::KacurCZ, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Search::KacurCZ
CPAN shell
perl -MCPAN -e shell install WWW::Search::KacurCZ
For more information on module installation, please visit the detailed CPAN module installation guide.