NAME

WWW::Search::Yahoo::China - WWW::Search backend for searching Yahoo! China

SYNOPSIS

use WWW::Search;
my $oSearch = new WWW::Search('Yahoo::China');
my $sQuery = WWW::Search::escape_query("$BK=So4+Gi(B");
$oSearch->native_query($sQuery);
while (my $oResult = $oSearch->next_result())
  print $oResult->url, "\n";

DESCRIPTION

This class is a Yahoo! China specialization of WWW::Search. It handles making and interpreting searches on Yahoo! China http://cn.yahoo.com.

This class exports no public interface; all interaction should be done through WWW::Search objects.

NOTES

I have no idea what character encoding(s) are accepted/expected by Yahoo China's website. To create/test this backend I just cut-and-pasted Chinese characters from cn.yahoo.com.

It seems that if your query is in UTF-8, sending option {ei => 'UTF-8'} makes it do the right thing.

PRIVATE METHODS

parse_details

Given a (portion of an) HTML::TreeBuilder tree and a WWW::SearchResult object, parses one result out of the tree and populates the SearchResult.

SEE ALSO

To make new back-ends, see WWW::Search.

BUGS

Please tell the maintainer if you find any!

AUTHOR

Martin Thurn <mthurn@cpan.org>

LICENSE

This software is released under the same license as Perl itself.