I was looking for a piece of code to get the Page Rank of some urls. There is a lot of code and information on the subject, the hardest part beeing the fact that Google uses the Perfect Hash algorithm in the query. I found a nice solution over here and decided to package it both as a library I can use on my project and a .exe I can use in bash scripts if needed.
If you want to use the library it’s pretty simple, all you’ve to do is to reference it and put something like this in your code:
int rank = PageRankChecker.CheckUrl("www.google.com");