WWW::Search::Yahoo - class for searching Yahoo
use WWW::Search; my $oSearch = new WWW::Search('Yahoo'); my $sQuery = WWW::Search::escape_query("+sushi restaurant +Columbus Ohio"); $oSearch->native_query($sQuery); while (my $oResult = $oSearch->next_result()) print $oResult->url, "\n";
This class is a Yahoo specialization of WWW::Search. It handles making and interpreting Yahoo searches http://www.yahoo.com.
You can also search Yahoo Korea. Just add this search_base_url to your search setup:
$oSearch->native_query($sQuery, {'search_base_url' => 'http://search.yahoo.co.kr'});
This class exports no public interface; all interaction should be done through WWW::Search objects.
The default search is: Yahoo's Inktomi-based index (not usenet); "OR" of all query terms (not "AND").
To make new back-ends, see WWW::Search.
Please tell the maintainer if you find any!
This module adheres to the WWW::Search test suite mechanism.
WWW::Search
As of 1998-02-02, WWW::Search::Yahoo is maintained by Martin Thurn (MartinThurn@iname.com).
WWW::Search::Yahoo
WWW::Search::Yahoo was originally written by Wm. L. Scheding, based on WWW::Search::AltaVista.
WWW::Search::AltaVista
THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
If it''s not listed here, then it wasn''t a meaningful nor released revision.
Added support for Yahoo Korea.
fixed parser
now uses hash_to_cgi_string()
update test cases; add caveat about repeated URLs
version number alignment with new WWW::Search; new test mechanism
BUG FIX: now captures citation descriptions; BUG FIX: next page of results was often wrong or missing!
Now uses split_lines function
Fixed bug where next page tag was always missed. Fixed the maximum_to_retrieve off-by-one problem. Updated test cases.
To install WWW::Search, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Search
CPAN shell
perl -MCPAN -e shell install WWW::Search
For more information on module installation, please visit the detailed CPAN module installation guide.