3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-18 01:49:53 +01:00
pbot/modules/gtop10.pl
Pragmatic Software 2c44e648fb Initial import
2007-05-20 20:44:44 +00:00

19 lines
315 B
Perl
Executable File

#!/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, ";
}