If you are open to use tool, HTMLAgilityPack is the right tool, I would say. It is open-source, free and pretty versatile.
http://htmlagilitypack.codeplex.com/[
^]
A simple snippet
HtmlWeb hw = new HtmlWeb();
HtmlDocument htmlDoc = hw.Load("www.yoursite.com/default.aspx);
foreach(HtmlNode eachLink in htmlDoc.DocumentElement.SelectNodes("
{
}
If you want to write your own tool, I would suggest to have a look at
http://www.dotnetperls.com/scraping-html[
^]
Though, this is just begining and you may face lots of issues if you are trying to scrap other sites as the internet is full of badly written sites :-(
Hope that helps. If it does, mark the answer /upvote.
Thanks
Milind