|
NAMEWWW::Google::News - Access to Google's News Service (Not Usenet) SYNOPSIS # OO search interface
use WWW::Google::News;
my $news = WWW::Google::News->new();
$news->topic("Frank Zappa");
my $results = $news->search();
# original news functions
use WWW:Google::News qw(get_news);
my $results = get_news();
my $results = get_news_for_topic('impending asteriod impact');
DESCRIPTIONThis module provides a couple of methods to scrape results from Google News, returning a data structure similar to the following (which happens to be suitable to feeding into XML::RSS). {
'Top Stories' =>
[
{
'url' => 'http://www.washingtonpost.com/wp-dyn/articles/A9707-2002Nov19.html',
'headline' => 'Amendment to Homeland Security Bill Defeated'
},
{
'url' => 'http://www.ananova.com/news/story/sm_712444.html',
'headline' => 'US and UN at odds as Iraq promises to meet deadline'
}
],
'Entertainment' =>
[
{
'url' => 'http://abcnews.go.com/sections/entertainment/DailyNews/Coburn021119.html',
'headline' => 'James Coburn Dies'
},
{
'url' => 'http://www.cbsnews.com/stories/2002/11/15/entertainment/main529532.shtml',
'headline' => '007s On Parade At \'Die\' Premiere'
}
]
}
METHODS
TODOReturn info on images contained in certain articles. Parse out sub articles from featured stories. Consolidate scraping functions. AUTHORSGreg McCarroll <greg@mccarroll.demon.co.uk>, Bowen Dwelle <bowen@dwelle.org>, Scott Holdren <scott@sitening.com> KUDOSDarren Chamberlain for rss_alternate.pl Leon Brocard for pulling me up on my obsessive compulsion to use hashes. SEE ALSO<http://news.google.com/> <http://news.google.com/news/gnmainlite.html> POD ERRORSHey! The above document had some coding errors, which are explained below:
|