Html Agility Pack From Web
Load Html From Web
HtmlWeb.Load method gets an HTML document from an internet resource.
Example
The following example loads an Html from the web.
var html = @"https://html-agility-pack.net/"; HtmlWeb web = new HtmlWeb(); var htmlDoc = web.Load(html); var node = htmlDoc.DocumentNode.SelectSingleNode("//head/title"); Console.WriteLine("Node Name: " + node.Name + "\n" + node.OuterHtml);
Click here to run this example.