从C#检查域网页排名 [英] Checking domain Page Rank from C#

查看:153
本文介绍了从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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆