Here's an example straight from their examples page on how to find all the links in a page
I'd look at using the Html Agility Pack.
I'd look at using the Html Agility Pack.
HtmlWeb hw = new HtmlWeb();
HtmlDocument doc = hw.Load(/* url */);
foreach(HtmlNode link in doc.DocumentElement.SelectNodes("//a[@href]"))
{
}
No comments:
Post a Comment