private void DisplayNewLink(string url) { HtmlWeb web = new HtmlWeb(); HtmlDocument doc = web.Load(url); var results = doc.DocumentNode .Descendants("div") .Where(n => n.Attributes["class"] != null && n.Attributes["class"].Value !=null) .Select(n => n.InnerText.Replace("\r\n", "").Trim()) .ToArray(); }
div
using
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)