NAME
WWW::Search::Yahoo::Japan::News - class for searching News on Yahoo Japan (in Japanese)
SYNOPSIS
use Jcode;
my $sQueryJP = "ÎÁÍý¤ÎÅ´¿Í";
my $sQuery = Jcode->new($sQueryJP)->euc;
(OR)
use Encode qw( from_to );
my $sQuery = "ÎÁÍý¤ÎÅ´¿Í";
from_to($sQuery, $sMyEncoding, 'euc-jp');
(THEN)
my $sQuery = WWW::Search::escape_query($sQuery);
use WWW::Search;
my $oSearch = new WWW::Search('Yahoo::Japan::News');
$oSearch->native_query($sQuery);
while (my $oResult = $oSearch->next_result())
print $oResult->url, "\n";
DESCRIPTION
This class is a Yahoo Japan News specialization of WWW::Search. It handles making and interpreting searches of Yahoo News in Japanese http://headlines.yahoo.co.jp.
This class exports no public interface; all interaction should be done through WWW::Search objects.
NOTES
Query string must be in EUC encoding, and then escaped with WWW::Search::escape_query().
If you have multiple query terms, put an ASCII space character in between all of them.
Yahoo Japan does an AND of all query terms. There is no way to change this.
In the results, description will be in EUC encoding (I think).
SEE ALSO
To make new back-ends, see WWW::Search.
BUGS
Please tell the maintainer if you find any!
TESTING
This module adheres to the WWW::Search
test suite mechanism.
AUTHOR
Martin Thurn (mthurn@cpan.org).
LEGALESE
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.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 10:
Non-ASCII character seen before =encoding in '"ÎÁÍý¤ÎÅ´¿Í";'. Assuming CP1252