It should be quite simple to get what you need with the HtmlAgilityPack. Assuming you have your document loaded into an HtmlDocument
object named doc
:
HtmlNodeCollection collection = doc.DocumentNode.SelectNodes("//a[@href]");
foreach (HtmlNode node in collection)
{
// Do what you want with the href value in here. As an example, this just
// just prints the value to the console.
Console.WriteLine(node.GetAttributeValue("href", "default"));
}