开发者

google page rank get in python

开发者_StackOverflow社区

I need google page rank get in python. There i can officially extract it? i mean i can parse some thing like this http://www.prchecker.info But there these sites get data officially from google? or may i can use some python seo libs for this?


I needed to recently do the same thing and couldn't find any examples of working python code to get the google page rank via their toolbar API. I did find an example written in perl on CPAN (WWW:Google:PageRank) and I reimplemented it in python. I also have a class for getting the Alexa traffic rank from their toolbar.

https://github.com/aablack/websearchapp/blob/master/search/rank_provider.py

I know the question is old but I'm hoping it may be of use to other people searching for solutions to this problem.


I posted about getting PageRank here:
http://coreygoldberg.blogspot.com/2010/01/python-lookup-google-pagerank-score.html

the code you need is here:
http://code.google.com/p/corey-projects/source/browse/trunk/python2/pagerank.py

it uses the Google Toolbar 3.0.x/4.0.x Pagerank Checksum Algorithm.


(note: this might not give you the rank they use internally for results, but it will give you whatever pagerank that the Google toolbar would display for the given page)


No, there is no official PageRank API. There are various hacks, which you can google.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜