Perl Script to check Google pagerank

2010
11
May

In order to find out a Google Pagerank of a webpage, we can use the WWW::Google::PageRank module in Perl.
Click WWW::Google::PageRank to download the Google Pagerank module. Here is a simple script that takes the Website URL as a command line argument and prints the Google PageRank.

#!/usr/bin/perl
 
$webpage = $ARGV[0];
 
use WWW::Google::PageRank;
my $pagerank = WWW::Google::PageRank->new;
print scalar($pagerank->get($webpage)), "\n";

Similar Posts
Related Searches




Comments

Post new comment

The content of this field is kept private and will not be shown publicly.