思為網(wǎng)絡(luò)Google PR查詢接口恢復(fù)正常--Google PR最新查詢接口
思為網(wǎng)絡(luò)站長(zhǎng)工具提供網(wǎng)站google pagerank在線查詢:
http://www.ygzc.net.cn/tool/google_page_rank/
最新的查詢接口:http://toolbarqueries.google.com/tbr?client=navclient-auto&ch={gchecksum}&features=Rank&q=info:{url|encode}
見本站:http://toolbarqueries.google.com/tbr?client=navclient-auto&features=Rank&ch=***&q=info:域名
關(guān)鍵是取得{gchecksum},
python取&ch的值:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
GPR_HASH_SEED =
"Mining PageRank is AGAINST GOOGLE'S TERMS OF SERVICE. Y
es, I'm talking to you, scammer."
def google_hash(value):
magic = 0x1020345
for i in xrange(len(value)):
magic ^= ord(GPR_HASH_SEED[i % len(GPR_HASH_SEED)]) ^ ord(value[i])
magic = (magic >> 23 | magic << 9) & 0xFFFFFFFF
return "8%08x" % (magic)
print(google_hash("www.ygzc.net.cn"))