Reputation: 3080
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?
Upvotes: 4
Views: 7537
Reputation: 81
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.
Upvotes: 8
Reputation: 60604
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)
Upvotes: 6
Reputation: 123632
No, there is no official PageRank API. There are various hacks, which you can google.
Upvotes: -4