WWW::OpenSearch - Search A9 OpenSearch compatible engines
use WWW::OpenSearch; my $url = "http://bulkfeeds.net/opensearch.xml"; my $engine = WWW::OpenSearch->new($url); my $name = $engine->ShortName; my $tags = $engine->Tags; my $feed = $engine->search("iPod"); for my $item (@{$feed->items}) { print $item->{description}; } # page through page 2 with 20 items in each page # Note that some engines don't allow changing these values $engine->pager->entries_per_page(20); $engine->pager->current_page(2); my $feed = $engine->search("iPod");
This module is in beta version, which means its API interface and functionalities may be changed in future releases.
WWW::OpenSearch is a module to search A9's OpenSearch compatible search engines. See http://opensearch.a9.com/ for details.
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
XML::LibXML, XML::RSS::LibXML, Data::Page, LWP
To install WWW::OpenSearch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::OpenSearch
CPAN shell
perl -MCPAN -e shell install WWW::OpenSearch
For more information on module installation, please visit the detailed CPAN module installation guide.