Return to iWEBTOOL

Go Back   iWEBTOOL Talk > The Web and your Website > Web Development > Tools & Software
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
Welcome to iWEBTOOL Talk, where you talk about webmaster-related stuff.
 
Discuss topics which interest you.
With over thousands of threads (topics), we're sure you'll find something that'll interest you.
Ask for help whenever you need it.
We have thousands of members who are available to help you if you need it.
It's absolutely FREE!

 1  Register           2  Browse the board           3  Discuss whatever may interest you!
 


Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 06-15-2006, 03:10 PM   #1
Daniel Malone
Senior Member
 
Daniel Malone's Avatar
 
Join Date: May 2006
Posts: 252
Daniel Malone will become famous soon enough
Default PageRank API?

Hey, where does everybody get the PageRank API from? I looked for it on code.google.com, but could not find it.
__________________
Webmaster News and Daniel's blog can be found at Daniel Malone
Free Webmaster Tools
Daniel Malone is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
SEO Checklist
Get yourself better ranking with
our "Do-it-Yourself" SEO Checklist.
Click Here
Old 06-16-2006, 12:12 AM   #2
kenni
Registered Member
 
kenni's Avatar
 
Join Date: Dec 2005
Posts: 1,543
kenni is a splendid one to beholdkenni is a splendid one to beholdkenni is a splendid one to beholdkenni is a splendid one to beholdkenni is a splendid one to beholdkenni is a splendid one to beholdkenni is a splendid one to beholdkenni is a splendid one to behold
Default Re: PageRank API?

I don't think there is an API to retrieve Google PageRank data. All the websites use the extraction from the Google servers using their checksum.

If you want that code, it's below: (in PHP)

Code:
<?php /* This code is released unto the public domain */ define('GOOGLE_MAGIC', 0xE6359A60); //unsigned shift right 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]<<8) +($url[$k+2]<<16) +($url[$k+3]<<24)); $b += ($url[$k+4] +($url[$k+5]<<8) +($url[$k+6]<<16) +($url[$k+7]<<24)); $c += ($url[$k+8] +($url[$k+9]<<8) +($url[$k+10]<<16)+($url[$k+11]<<24)); $mix = mix($a,$b,$c); $a = $mix[0]; $b = $mix[1]; $c = $mix[2]; $k += 12; $len -= 12; } $c += $length; switch($len) /* all the case statements fall through */ { case 11: $c+=($url[$k+10]<<24); case 10: $c+=($url[$k+9]<<16); case 9 : $c+=($url[$k+8]<<8); /* the first byte of c is reserved for the length */ case 8 : $b+=($url[$k+7]<<24); case 7 : $b+=($url[$k+6]<<16); case 6 : $b+=($url[$k+5]<<8); case 5 : $b+=($url[$k+4]); case 4 : $a+=($url[$k+3]<<24); case 3 : $a+=($url[$k+2]<<16); case 2 : $a+=($url[$k+1]<<8); case 1 : $a+=($url[$k+0]); /* case 0: nothing left to add */ } $mix = mix($a,$b,$c); /*-------------------------------------------- report the result */ return $mix[2]; } //converts a string into an array of integers containing the numeric value of the char function strord($string) { for($i=0;$i<strlen($string);$i++) { $result[$i] = ord($string{$i}); } return $result; } // http://www.example.com/ - Checksum: 6540747202 $url = 'info:'.$_GET['url']; print("url:\t{$_GET['url']}\n"); $ch = GoogleCH(strord($url)); printf("ch:\t6%u\n",$ch); ?>
__________________
Wanna thank someone? Give 'em a rep. More info.
kenni is offline  
Old 06-16-2006, 02:37 AM   #3
Daniel Malone
Senior Member
 
Daniel Malone's Avatar
 
Join Date: May 2006
Posts: 252
Daniel Malone will become famous soon enough
Default Re: PageRank API?

Thanks kenni for the code!

What exactly does it do? When I load the script, I get this: url: ch: 61054125718

But what I was looking for is something that will get the PageRank of any site. I'll just use http://www.iwebtool.com/rank as an example, and I've seen lots of sites like it.

Do all those pagerank sites use this code?
__________________
Webmaster News and Daniel's blog can be found at Daniel Malone
Free Webmaster Tools
Daniel Malone is offline  
Old 06-16-2006, 02:53 AM   #4
mann3r
Member
 
mann3r's Avatar
 
Join Date: May 2006
Posts: 247
mann3r will become famous soon enough
Default Re: PageRank API?

thanks for sharing this code kenni, i will look into it also
mann3r is offline  
Old 06-19-2006, 10:45 PM   #5
baktabul
Newcomer
 
baktabul's Avatar
 
Join Date: Jun 2006
Posts: 19
baktabul will become famous soon enough
Default Re: PageRank API?

thanks.. This Code İs reaal Good
baktabul is offline  
Old 06-20-2006, 03:50 PM   #6
nchhieu
Newcomer
 
nchhieu's Avatar
 
Join Date: Jun 2006
Posts: 1
nchhieu will become famous soon enough
Default Re: PageRank API?

pls let me know where we can submit our website to make higher pagerank ?
Thank Kenni for your code
Hieu
nchhieu is offline  
Old 07-23-2006, 12:15 PM   #7
bin_asc
Member
 
bin_asc's Avatar
 
Join Date: Jul 2006
Location: Romania
Posts: 47
bin_asc will become famous soon enough
Send a message via AIM to bin_asc Send a message via MSN to bin_asc Send a message via Yahoo to bin_asc Send a message via Skype™ to bin_asc
Default Re: PageRank API?

One bad news.The code will only work on google nonbanned sites, and 32 bit based platform servers.
bin_asc is offline  
Old 07-23-2006, 10:28 PM   #8
Daniel Malone
Senior Member
 
Daniel Malone's Avatar
 
Join Date: May 2006
Posts: 252
Daniel Malone will become famous soon enough
Default Re: PageRank API?

BTW, I bought the PageRank code. Pretty cool.
__________________
Webmaster News and Daniel's blog can be found at Daniel Malone
Free Webmaster Tools
Daniel Malone is offline  
Old 07-23-2006, 10:55 PM   #9
bin_asc
Member
 
bin_asc's Avatar
 
Join Date: Jul 2006
Location: Romania
Posts: 47
bin_asc will become famous soon enough
Send a message via AIM to bin_asc Send a message via MSN to bin_asc Send a message via Yahoo to bin_asc Send a message via Skype™ to bin_asc
Default Re: PageRank API?

You bought the code ? It`s free on the internet.
bin_asc is offline  
Old 07-24-2006, 01:35 AM   #10
baktabul
Newcomer
 
baktabul's Avatar
 
Join Date: Jun 2006
Posts: 19
baktabul will become famous soon enough
Default Re: PageRank API?

Check This Sites To Get Pagerank
www.toplist.baktabul.com
www.baktabul.net/toplist.php
www.sevbeni.com/toplist.php
www.pagerank.baktabul.com/toplist.html

You can Find All Pagerank Sites
baktabul is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
Webmaster Tools Webmaster Tools Click Here
Closed Thread

(Threads which have no activity for more than 30 days are automatically closed.)



Quick Reply
Message:

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
My pagerank UnKnown Tools & Software 8 12-12-2006 07:31 PM
PageRank tool? Chart Music Tools & Software 10 10-23-2006 08:45 PM
PageRank Gmen Google 2 08-25-2006 12:09 PM
PageRank Help BillingGuru Google 14 01-25-2006 08:55 PM
Pagerank.sc microdude431 Help and Support 1 01-12-2006 08:50 PM


All times are GMT. The time now is 02:03 AM.


Powered by vBulletin v3.6.7 © 2008, Jelsoft Enterprises Ltd. SEO by vBSEO © 2006, Crawlability, Inc.