// Create a new HTML Agility doc HtmlDocument doc = new HtmlDocument(); // Read HTML string (assume already downloaded) doc.LoadHtml(responseFromServer); // Get all the meta tags that have a property attibute HtmlNodeCollection Nodes = doc.DocumentNode.SelectNodes("//meta[@property]"); // From the meta tags, find the tags with open graph (og:) var openGraph = Nodes.Where(n => n.Attributes.Any(a => a.Value.StartsWith("og:")));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)