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.
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.
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