从C#检查域网页排名 [英] Checking domain Page Rank from C#
问题描述
我想从C#域的网页排名(PR)值
I am trying to get a Page Rank (PR) value of a domain from C#.
我使用本网站的代码:
的http:/ /www.codeproject.com/Articles/20038/Request-Google-s-Page-rank-Programmatically
不过,这并不为我工作。它所做的就是返回-1。
But it doesn't work for me. All it does is return -1.
难道谷歌关闭其API的歌的PageRank检查?
Did google turn off their API for pagerank checking?
有这个令人惊讶的非常低的信息在网络上。
There is surprisingly very low info about this on the net.
推荐答案
谷歌只是改变了它的PR服务器,因此也改变了查询网址。
结果旧的查询网址是:结果
http://toolbarqueries.google.com/search?client=navclient-auto&features=Rank&ch=8f3b58e04&q=info: [URLHERE]
结果
新的查询网址是:结果
http://toolbarqueries.google.com/tbr?client=navclient-auto&features=Rank&ch = 8f3b58e04&安培; q =信息:[URLHERE]结果
所以你可以尝试这样的查询结果
的 http://toolbarqueries.google.com/tbr?client=navclient-auto&features=Rank&ch= {URL ComputeHash}&放; q =信息:{URL}
结果它会回报你这样的响应第RANK_1:1:9 ,它可以分析得到的网页排名
Google just changed its PR server and as a result also changed its query URL.
The old query URL is:
http://toolbarqueries.google.com/search?client=navclient-auto&features=Rank&ch=8f3b58e04&q=info:[URLHERE]
The new query URL is:
http://toolbarqueries.google.com/tbr?client=navclient-auto&features=Rank&ch=8f3b58e04&q=info:[URLHERE]
So you can try query like this
http://toolbarqueries.google.com/tbr?client=navclient-auto&features=Rank&ch={url ComputeHash }&q=info:{url}
It will return you response like that Rank_1:1:9,which can be parsed to get the page rank.
这篇关于从C#检查域网页排名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!