mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-18 01:49:53 +01:00
19 lines
315 B
Perl
Executable File
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, ";
|
|
}
|