New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Script to get PageRank for a URL?
raindog308
Administrator, Veteran
in Help
I'm trying to find a script that will let me programmatically look up the PageRank for a URL.
I'm aware of sites like prchecker.info, etc. that let you type a URL and get a PageRank. But what I want is a script I can run on a VPS that emails me a report once a month that says "for the URLs you care about, here's the page rank for each".
PHP, Perl, Python - can work with any. I did Google but haven't come up with anything that wasn't a pay product...I can't believe this is so complicated I'd need to pay.

Comments
http://www.pagerankcode.com/download-script.html
It's been a number of years since I used one but it should still work.
thanks...I'm not even sure what this code is doing :-)
<?php define('GOOGLE_MAGIC', 0xE6359A60); function _zeroFill($a, $b){ $z = hexdec(80000000); if ($z & $a){ $a = ($a>>1); $a &= (~$z); $a |= 0x40000000; $a = ($a>>($b-1)); }else $a = ($a>>$b); return $a; } function _mix($a,$b,$c){ $a -= $b; $a -= $c; $a ^= (_zeroFill($c,13)); $b -= $c; $b -= $a; $b ^= ($a<<8); $c -= $a; $c -= $b; $c ^= (_zeroFill($b,13)); $a -= $b; $a -= $c; $a ^= (_zeroFill($c,12)); $b -= $c; $b -= $a; $b ^= ($a<<16); $c -= $a; $c -= $b; $c ^= (_zeroFill($b,5)); $a -= $b; $a -= $c; $a ^= (_zeroFill($c,3)); $b -= $c; $b -= $a; $b ^= ($a<<10); $c -= $a; $c -= $b; $c ^= (_zeroFill($b,15)); return array($a,$b,$c); } function _GoogleCH($url, $length=null, $init=GOOGLE_MAGIC){ if(is_null($length)) $length = sizeof($url); $a = $b = 0x9E3779B9; $c = $init; $k = 0; $len = $length; while($len >= 12){ $a += ($url[$k + 0] + ($url[$k + 1]It's just a checksum that somewhat validates the request was 'genuine'.
Wouldn't it be possible to get the page results into a html report enailed to you?
Use my web app once a month?