public static void Main()
ExtractHref("https://technologycrowds.com");
static void ExtractHref(string URL)
HtmlWeb web = new HtmlWeb();
HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
foreach (HtmlNode link in doc.DocumentNode.SelectNodes("//a[@href]"))
HtmlAttribute att = link.Attributes["href"];
if (att.Value.Contains("a"))
Console.WriteLine(att.Value);