pbot/modules/gtop10.pl

19 lines
315 B
Perl
Raw Normal View History

2007-05-20 22:44:44 +02:00
#!/usr/bin/perl -w
use strict;
use LWP::Simple;
my $html;
$html = get("http://www.google.com/press/zeitgeist.html");
defined $html or die "Oops, couldn't get the data.";
print "Top 10 Google search queries: ";
while($html =~ m/<td class="bodytext2" .*?<a class="style10".*?>(.*?)<\/a>/g)
{
print "$1, ";
}