View Full Version : reciprocal link checker from ASP.NET - How do I implement one
SEO Jeff
Mar 2nd 2005, 8:51 pm
Hi all. I cannot find on the web how I can develop a reciprocal link checker from ASP.NET.
So far what I got developed is a Screen Scraper but I want it to verify the link I request is still on the site. I am looking into verifing a bulk of sites at once and just can't seem to get the scraper to what I want it to do.
Any help will be greatly welcomed.
Talker
Apr 11th 2007, 3:07 am
Im looking for this too ..
Can you forward me the scrrenscraper ? maybe its of my use.
webcosmo
Apr 11th 2007, 8:04 pm
In ASP .NET C# you can do this:
=========================
String url="http://www.yahoo.com"; //example url
WebClient client=new WebClient();
Stream stream=client.OpenRead(url);
String content=reader.ReadToEnd();
String myUrl="http://www.webcosmo.com";
bool linkExists=false;
if(content.ToLower().IndexOf(myUrl)>=0)
linkExists=true;
============================
You have inlude this:
using System.Net;
best idea will be developing a windows form which will check bunch of sites in Thread with Thread.Sleep
Hope it helps.
Talker
Apr 12th 2007, 5:13 am
Thanks for the code, ill see how it works and update this thread.
ccoonen
Apr 17th 2007, 10:07 pm
Run a regex once you get the Source... Also an easy way to use WebClient is using the shared method DownloadString.
Instantiate your webclient, then dim str as string = webclientobj.downloadstring("http://www.smashingdir.com") and thats it :) then run a regex to traverse links, then iterate through that link collection for your link :)
Talker
Apr 18th 2007, 5:58 am
Run a regex once you get the Source... Also an easy way to use WebClient is using the shared method DownloadString.
Instantiate your webclient, then dim str as string = webclientobj.downloadstring("http://www.smashingdir.com") and thats it :) then run a regex to traverse links, then iterate through that link collection for your link :)
Do you have a sample page written in ASP.net (vb) ?
I still aint able to get this done :(
ccoonen
Apr 18th 2007, 6:45 am
I could write up one when I get back from Vacation Sunday night - if you remind me ;)
Talker
Apr 18th 2007, 8:05 am
Ok, ill wait.. thanks m8
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.