Html Agility Pack From Web
Load HTML From Web
HtmlWeb.Load method retrieves an HTML document from an internet resource.
Example
The following example loads 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.