How do I get the pagerank of a website programmatically? [closed]

会有一股神秘感。 提交于 2019-12-13 05:13:53

问题


Is there any API that gives me the page rank of a website programmatically?


回答1:


if you mean with pagerank the green bar on top of the google toolbar, just make a get request to

http://toolbarqueries.google.at/tbr?features=Rank&sourceid=navclient-ff&client=navclient-auto-ff&googleip=O;173.194.35.104;539&iqrn=O6uB&querytime=5X&orig=0gjuj&swwk=-1&ch=805513e7f&q=info:https://stackoverflow.com/

the last figure is the google toolbar pagerank figure (also known as green bar pagerank)

but it is not the real google pagerank (which isn't a figure beteween 0 and 10) and it is not even an estimate of the value of your page, it is just a figure google communicates to webmasters to turn on the "submit data to us" option of the toolbar. my recommendation is: just ignore it.




回答2:


Sorry to dig up an old question, but I had this same problem, and found a way to solve it.

The "&ch=" part is a checksum of the domain/page you are trying to find the "fake PR" for.

Use the code from here: http://www.codeproject.com/Articles/20038/Request-Google-s-Page-rank-Programmatically

Replace the original URL with the URL provided by Franz (http://toolbarqueries.google.at/tbr?features=Rank&sourceid=navclient-ff&client=navclient-auto-ff&googleip=O;173.194.35.104;539&iqrn=O6uB&querytime=5X&orig=0gjuj&swwk=-1&ch=805513e7f&q=info:http://stackoverflow.com/).




回答3:


This is really easy to use http://www.fourmilab.ch/webtools/PageRank/



来源:https://stackoverflow.com/questions/4260474/how-do-i-get-the-pagerank-of-a-website-programmatically

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!