safikul / seostats

Automatically exported from code.google.com/p/seostats
0 stars 0 forks source link

Non-Reachable Pagerank API #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Which method(/function) produce a problem?
1. I cannot clearly say that. But the calculation of PageRank-Key fails because 
the server is unreachable. Perhaps a timeout would be a good idea.

Does the method(/function) produce the problem for all given URL's?
(If not, what specific URL produces the problem?)
1. Yes, all URLs.

Please provide any additional information below:
Just a timeout for PageRank-API. I can write it by myself, but it should be 
accessible to all users ;-).

Original issue reported on code.google.com by PommesSc...@gmail.com on 21 Jun 2011 at 5:21

GoogleCodeExporter commented 9 years ago
Tahnks for pointing out. (I assume you meant the checksum API, as i shut down 
the Pagerank API.)

You can use the new URL what will be the standard URL as of release 2.0.8 
anyway:

http://pagerank.bexton.net/?url=http://www.google.de

Original comment by eyecatchup@gmail.com on 24 Jun 2011 at 4:53

GoogleCodeExporter commented 9 years ago
This PR checksum generator at bexton.net doesn't seem to work. It's on line, 
but the returned checksums seem to be invalid as they are not accepted (google 
shows "we're sorry..." page).

I did some research involving a network sniffer and some SEO plugins for Chrome 
- this way I could figure out what a valid checksum now looks like and which to 
which URL the PR query is sent to. I found out that the checksums seems to 
start with "7" now and they are not sent to toolbarqueries.google.com but to 
http://www.google.com/search... - so the final query should look similar to 
this:

http://www.google.com/search?client=navclient-auto&ch=71234567890&features=Rank&
q=info:http://www.domain.com

Then I spent some time searching for checksum generator algorithms which 
returns the "new" type of checksum - and which has its source code available. I 
found this one: http://home.zhiwei.li/pagerank/rank.p-h-p.txt and implemented 
"my own" checksum generator by changing the last part to return the checksum as 
JSON, which should be trivial for any coder. Then I just changed the API-URL to 
"www.mydomain.com/checksum/?url=" and PR works again.

Actually I would really like to be able to submit my code changes (which 
include some other tweaks for better compatibility and less problems with 
getting "banned") to the project. But that would require a change to something 
like GitHub, wouldn't it?

Original comment by lwswerb...@gmail.com on 3 Jul 2011 at 9:55

GoogleCodeExporter commented 9 years ago
Thanks for the feedback and your effort! 2 things:

A) Github is planned and will i'll be moving the project as soon as i possible, 
as there have bin several requests now. Thing is, i'm just too busy at the 
moment with the work i'm earning my money with. So this needs to wait. ;) But 
the current project i'm working on, will be finished within the next days - so 
i hope you can wait that few more days. ;) (BTW: That is also, why i missed all 
the ongoing issue reports and replied that late - sorry therefore.)

B) That new URL is working again, that was my fault and just a typo. by the way 
i added a third key to the json array, containing the final toolbar URL. Also 
you can now provide an optional second query parameter to the URL, named 
'jsonp', for use with callback functions: 
http://pagerank.bexton.net/?url=http://www.google.de&jsonp=test

The link you posted, i know that script. You will have a very low chance on 
most standard web hosting servers to get that running. It's a PHP problem and 
has something to do with the range of sidned integers in PHP. So actually this 
script is one of the most shortest, but also the 'weakest' when it comes to 
compatibility.

And by the way: What is about the build-in method? There was actually no need 
to implement something else, but rather you could have had simply set the CONST 
'USE_PAGERANK_CHECKSUM_API' to it's default value: false. Or did you 
encountered any problems with that?

Anyway.. As said: the pagerank checksum api works again (and even better) and 
Github will be there asap (updates on that will be posted here and on my blog 
bexton.net).

Original comment by eyecatchup@gmail.com on 7 Jul 2011 at 8:13