Forum Moderators: coopster
Request the page you want to check once with your browser and the google toolbar enabled.
In your proxy log file look for a URL that looks like http://www.google.com/search?client=navclient-auto&ch=51313900179&q=info:http%3A%2F%2F [google.com]
Request that URL using php and parse the returned xml document looking for the element gsp/res/r/rk. Its contents is the page rank as displayed by the google toolbar.
Beware that you cannot change the q parameter in the query string to just any URL as the ch parameter seems to be connected to it. I havenīt tried to figure out what it is exactly.
Hope this helps.
[edited by: andreasfriedrich at 1:13 pm (utc) on July 22, 2002]
[edited by: jatar_k at 5:46 pm (utc) on Sep. 21, 2002]
[edit reason] fixed side scroll [/edit]
http://www.google.com/search?client=navclient-auto&ch=51313900179&q=info:http%3A%2F%2F [google.com]
[edited by: jatar_k at 5:44 pm (utc) on Sep. 21, 2002]
[edit reason] fixed side scroll [/edit]
Beware that you cannot change the q parameter in the query string to just any URL as the ch parameter seems to be connected to it. I havenīt tried to figure out what it is exactly.
So short of having hacked that algo you need to request the url once from a windows box with the toolbar enabled. I believe the ch not only to be site specific but specific to each URL, some sort of hash value.
Andreas
[216.239.33.102...]
Results in something like:
Rank_1:1:4
Btw does ch change between updates.
(I think that Google can update the toolbar algo without requesting user confirmation.)
/edit
Removed non-necessary parts of the URI.