NAME
WWW::Google::News
SYNOPSIS
use WWW:Google::News qw(get_news);
my $result = get_news();
DESCRIPTION
This module provides one method get_news() which scren scrapes Google News and returns a data structure similar to ...
{
'Top Stories' => {
'1' => {
'url' => 'http://www.washingtonpost.com/wp-dyn/articles/A9707-2002Nov19.html',
'headline' => 'Amendment to Homeland Security Bill Defeated'
}
'2' => {
'url' => 'http://www.ananova.com/news/story/sm_712444.html',
'headline' => 'US and UN at odds as Iraq promises to meet deadline'
}
},
'Entertainment' => {
'1' => {
'url' => 'http://abcnews.go.com/sections/entertainment/DailyNews/Coburn021119.html',
'headline' => 'James Coburn Dies'
},
'2' => {
'url' => 'http://www.cbsnews.com/stories/2002/11/15/entertainment/main529532.shtml',
'headline' => '007s On Parade At \'Die\' Premiere'
}
},
}
Which is a reference to a hash keyed on News Section, which points to hashes keyed on Story Number, which points finally to a hash keyed on URL and Headline.
AUTHOR
Greg McCarroll <greg@mccarroll.demon.co.uk>