Full code for PageRank tool in C#

I’ve uploaded a copy of the code in a demo website for the pagerank tool in C#.

You can download it from: Full PageRank code with demo site

I’ve tried out a few websites and URLs that people have posted to me and got mixed results. I will be updating it if I can find fixes. In particular the hash seems to fail on some sub-directories.

Download it and try it out for yourself. Feedback is always welcome and drop a comment while you’re here.


UPDATE

The previous code was being blocked by Google for some requests due to a mis-calculated hash. This has been fixed now and the download updated.

You can also checkout my online demo at (not currently live)


UPDATE

I’ve been asked by Aaron Brown to provide a VB.net version of this code or at least of the StrToNum part. I’ll take a look at this shortly. Or if you have partly-working code, send it over and I’ll see if I can help out.

If you enjoyed this post, make sure you subscribe to my RSS feed!

Tags:

Posted on 20 July '07 by Aaron, under C#, Downloads, Google.

7 Comments to “Full code for PageRank tool in C#”

#1 Posted by Md Sarker (20.10.08 at 16:57 )

It was a great effort. I was looking for some code around for google PR on asp .net. Now we have it. I am using it on my site http://www.webcosmo.com/Tools/Tools.aspx?countryId=1

#2 Posted by Eric (01.01.09 at 14:36 )

very great tool .. many thanks for sharing .. was looking for some code like that :)

#3 Posted by Joe (06.01.09 at 21:56 )

I’ve started to get a bunch of 403 errors from Google using this code and was wondering if anyone else was seeing the same issue?

#4 Posted by admin (07.01.09 at 01:53 )

@Joe -

I’ve just re-run the code sample that I uploaded and tested on a few sites. I’m not getting any errors.

I was getting 403s from Google when I was first writing the code because the hash wan’t being generated correctly. Make sure you’ve got the latest version of the code from my website.

#5 Posted by Eric (07.01.09 at 06:35 )

no error right here everything okay thanks one more time ;)

#6 Posted by Shakil Ahmad (29.03.09 at 18:33 )

Yeah! its a very nice tool, and very helpful when it is with the source code, :) appreciated..!

#7 Posted by Jimi (24.08.09 at 20:54 )

In some URL’s i’m getting 403 forbidden code. Why that happens?