思为网络Google PR查询接口恢复正常--Google PR最新查询接口
思为网络站长工具提供网站google pagerank在线查询:
http://www.sw996.com/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:域名
关键是取得{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.sw996.com"))
思为网络腾讯企业微博,请关注我们: