Cheng-Lung Sung (宋政隆) > WWW-Google-News-TW-0.01 > WWW::Google::News::TW

Download:
WWW-Google-News-TW-0.01.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.01   Source   Latest Release: WWW-Google-News-TW-0.12

NAME ^

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

SYNOPSIS ^

  use WWW:Google::News::TW qw(get_news);
  my $results = get_news();

DESCRIPTION ^

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).

  {
          '社會' => [
                        {
                          'url' => 'http://udn.com/NEWS/LIFE/LIFS2/2233728.shtml',
                          'headline' => '中華電配線費四樓以下建物免收'
                        },
                      ],
          '焦點' => [
                        {
                          'url' => 'http://www.ettoday.com/2004/09/09/153-1683695.htm',
                          'headline' => '來去嘉義/阿里山鐵路接駁通車走走停停別有風味'
                        },
                      ],
   }

METHODS ^

get_news()

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.

TODO ^

* Add topic search

AUTHORS ^

Cheng-Lung Sung <clsung@dragon2.net>

KUDOS ^

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

COPYRIGHT ^

Copyright 2004 by Cheng-Lung Sung <clsung@dragon2.net>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://www.perl.com/perl/misc/Artistic.html

SEE ALSO ^

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