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");
[…] PageRankSharp – Getting the Page Rank from C# or the terminal … […]
useful package man – saved me a chunk of time 😉
I’m assuming this is obsolete now? I only get a -1 for every site I try.
Thanks,
Craig