GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  WWW::GOOGLE::NEWS::TW (3)

.ds Aq ’

NAME

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

CONTENTS

SYNOPSIS



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



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



  {
          XX => [
                        {
                          update_time => 11XXX,
                          source => XXXXX-,
                          summary => XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ,
                          url => http://udn.com/NEWS/LIFE/LIFS2/2233728.shtml,
                          headline => XXXXXXXXXXXXXX
                        },
                      ],
          XX => [
                        {
                          update_time => 2XXX,
                          source => XXXX-,
                          summary => XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ,
                          url => http://220.168.28.52:828/xxcb.rednet.com.cn/Articles/04/09/10/544900.HTM,
                          headline => 2004XXXXXXXX
                        },
   }



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.
get_news_for_topic( $topic ) 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.

SEE ALSO

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

TODO

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

AUTHORS

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

KUDOS

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

COPYRIGHT

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.

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

POD ERRORS

Hey! <B>The above document had some coding errors, which are explained below:B>
Around line 173: Non-ASCII character seen before =encoding in ’get_news_for_topic(’XX’);’. Assuming UTF-8
Around line 214: You forgot a ’=back’ before ’=head1’
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 WWW::GOOGLE::NEWS::TW (3) 2007-12-27

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.