Page Rank tool in VB.Net and C#

A couple of weeks ago another chap named Aaron asked me if I had done a copy of the PageRank code but this time in VB.Net

I said I’d take a look because the versions out on the Internet that he had seen didn’t work. Well this evening I found the time to do the VB.Net version.

I started by manually converting my C# code to VB.Net – bear in mind I haven’t worked in VB.Net for over 2 years now. When the conversion was complete I found that VB.Net was converting and handling integer types slightly differently to C#.

When my code failed to work I resulted to using a free online C# to VB.Net conversion utility on devfusion. The conversion was pretty much word for word what I had put and still didn’t work.

I then went through the process of stepping each iteration and for-next loop until I found the cause of the differences in values being retured. Turns out in the end it was simply the “integer division” operator that I needed to use in place of the standard division operator.

So here it is: go to download pagerank tool code in VB.net and C#

Also bear in mind this is .Net v2 code – I haven’t tested it on previous versions of VB.Net

If you use this in your code or on your website, I’d appreciate you linking back to my website.

Enjoy

Posted on 3 February '08 by Aaron, under C#, Downloads, Google, Updates, VB.NET. 4 Comments.

C# Google PR Checker

I’ve had some feedback about the google PR checker I have written in C#.

Basically I will be adding a property that allows you to select the datacentre to query and I will be randomising the PR requests where this property is not set.

Additionally I will be adding an automatic double-check facility so if a site ending in a slash doesn’t return a PR it will check again without the slash and vice-versa.

I will post again once the updates are made and post a link to the download.

For those of you wanting to download the current version, you can find it here:PageRank tool in C#

Thanks,

AR

Posted on 29 June '07 by Aaron, under C#, Downloads, Google. No Comments.