View Single Post
Old 01-13-2012, 09:23 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,599
here is the perl code

Code:
#!/usr/bin/perl

# bulk page rank checker
# usage: pr.pl domain1.com domain2.com domain3.com

use WWW::Google::PageRank;
my ($pr, $rank, $url);

if (defined(@ARGV)) {
for (@ARGV) {
   $url = $_;
   $url = "http://" . $url if ($url !~ /^http:\/\//);
   $pr = WWW::Google::PageRank->new();
   $rank = $pr->get($url);
   print "$url has a PageRank of ";
   if (defined($rank)) {
      print "$rank\n";
   } 
   else {
      print "UNDEFINED\n";
	}
  }
}

else {
   print "You must specify a URL ...\n";
}

exit;
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


My Cam Feeds Script / Gallery Scraper / WPXXX Theme / Free Templates
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote