Net::Google::toolNet::Google::tool is a base class for Net::Google service classes. | |
Download |
Net::Google::tool Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Aaron Straup Cope
- Publisher web site:
- http://search.cpan.org/~ascope/Net-Flickr-Geo-0.72/lib/Net/Flickr/Geo/ModestMaps.pm
Net::Google::tool Tags
Net::Google::tool Description
Net::Google::tool is a base class for Net::Google service classes. Net::Google::tool is a base class for Net::Google service classes.Base class and shared methods for Net::Google service classes.SYNOPSIS use Net::Google; use constant LOCAL_GOOGLE_KEY => "********************************"; my $google = Net::Google->new(key=>LOCAL_GOOGLE_KEY); my $search = $google->search(); # Search interface $search->query(qw(aaron straup cope)); $search->lr(qw(en fr)); $search->starts_at(5); $search->max_results(15); map { print $_->title()."n"; } @{$search->results()}; # or... foreach my $r (@{$search->response()}) { print "Search time :".$r->searchTime()."n"; # returns an array ref of Result objects # the same as the $search->results() method map { print $_->URL()."n"; } @{$r->resultElements()}; } # Spelling interface print $google->spelling(phrase=>"muntreal qwebec")->suggest(),"n"; # Cache interface my $cache = $google->cache(url=>"http://search.cpan.org/recent"); print $cache->get(); Requirements: · Perl
Net::Google::tool Related Software