
WWW::Google::News::TW - Access to Google's Taiwan News Service (Not Usenet)

use WWW::Google::News::TW qw(get_news);
my $results = get_news();
my $results = get_news_for_topic('éç');

This module provides a couple of methods to scrape results from Google Taiwan News, returning a data structure similar to the following (which happens to be suitable to feeding into XML::RSS).
{
'社æ' => [
{
'update_time' => '11å°æå',
'source' => 'è¯åæ°èç¶²-',
'summary' => 'ä¸å°æ°ç¾åå
¬å¹³ææª¢èï¼è³ªçä¸è¯é»ä¿¡æ¯æå¸³å®æ¶åäºå
ãå±å
§é
ç·æç§è²»ãçåçæ§ãå
¬å¹³ææ¨å¤©æ±ºè°ï¼è¦æ±ä¸è¯é»ä¿¡è¦è®æ¨é«åæ¨ä»¥ä¸çç¨æ¶ï¼å
æ¶äºå
æç§è²»ï¼ä¸¦æè¨æ¯æé²å¨é»ä¿¡å¸³å® ',
'url' => 'http://udn.com/NEWS/LIFE/LIFS2/2233728.shtml',
'headline' => 'ä¸è¯é»é
ç·è²»åæ¨ä»¥ä¸å»ºç©å
æ¶'
},
],
'卿¨' => [
{
'update_time' => '2å°æå',
'source' => 'çæ¹æ¨å ±-',
'summary' => 'æ¬å ±ç¶åæ¶æ¯å°ç£é馬影å±å·å§ææ¨æ¥å
¬ä½æ¬å¹´åº¦æ´»åæµ·å ±ï¼å
©æ¬¾ä¸å¹
é½ä»¥å½©è¹çºè¦è¦ºä¸»é¡ï¼è±¡å¾µé»å½±çå
å½±è夢æ³ï¼å¼·èª¿åµä½è
é»å½±å¤¢ç實ç¾ï¼ä¹æ¯è§ç¾é«é©é»å½±å¤¢çéç¨ ',
'url' => 'http://220.168.28.52:828/xxcb.rednet.com.cn/Articles/04/09/10/544900.HTM',
'headline' => '2004é馬影屿µ·å ±åºç'
},
}

Scrapes http://news.google.com.tw/news?ned=ttw and returns a reference to a hash keyed on News Section, which points to an array of hashes keyed on URL and Headline.
Queries http://news.google.com.tw/news?ned=tw for results on a particular topic, and returns a pointer to an array of hashes containing result data.

WWW::Google::News, http://news.google.com.tw/

* I haven't think about it yet....

Cheng-Lung Sung <clsung@tw.freebsd.org>

Greg McCarroll <greg@mccarroll.demon.co.uk>, Bowen Dwelle <bowen@dwelle.org> for the basis of this module

Copyright 2004,2005,2006,2007 by Cheng-Lung Sung <clsung@tw.freebsd.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.