-
-
Notifications
You must be signed in to change notification settings - Fork 0
Class for searching http://melcer.cz .
License
michal-josef-spacek/WWW-Search-MelcerCZ
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
NAME WWW::Search::MelcerCZ - Class for searching http://melcer.cz . SYNOPSIS use WWW::Search::MelcerCZ; my $obj = WWW::Search->new('MelcerCZ'); $obj->native_query($query); my $maintainer = $obj->maintainer; my $res_hr = $obj->next_result; my $version = $obj->version; METHODS "native_setup_search($query)" Setup. "native_retrieve_some()" Get data. EXAMPLE use strict; use warnings; use Data::Printer; use WWW::Search::MelcerCZ; # Arguments. if (@ARGV < 1) { print STDERR "Usage: $0 match\n"; exit 1; } my $match = $ARGV[0]; # Object. my $obj = WWW::Search->new('MelcerCZ'); $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 "Čapek Karel", # cover_url "http://melcer.cz//img/books/images_big/142829.jpg", # info "obálky a typo Zdenek Seydl, 179 + 156 stran, původní brože 8°, stav velmi dobrý", # price "97.00 Kč", # publisher "Československý spisovatel", # title "Povídky z jedné a druhé kapsy (2 svazky)", # url "http://melcer.cz//index.php?akc=detail&idvyrb=53259&hltex=%C8apek&autor=&nazev=&odroku=&doroku=&vydavatel=", # year 1967 # } DEPENDENCIES Encode, LWP::UserAgent, Readonly, Text::Iconv, Web::Scraper, WWW::Search. SEE ALSO WWW::Search Virtual base class for WWW searches Task::WWW::Search::Antiquarian::Czech Install the WWW::Search modules for Czech antiquarian bookstores. REPOSITORY <https://github.com/tupinek/WWW-Search-MelcerCZ> AUTHOR Michal Josef Špaček <mailto:skim@cpan.org> <http://skim.cz> LICENSE AND COPYRIGHT © Michal Josef Špaček 2010-2020 BSD 2-Clause License VERSION 0.02
Packages 0
No packages published