Following this example, I can find LI sections.
Html Agility Pack - <li> Analysis
However, I only need the LI elements that are inside the div with the identifier "res".
How to do it?
Something like that:
List facts = new List(); foreach (HtmlNode li in doc.DocumentNode.SelectNodes("//div[@id='res']/li")) { facts.Add(li.InnerText); }
Source: https://habr.com/ru/post/1732600/More articles:Iphone Splash Screen - objective-cCAKeyframeAnimation with loop - core-animationR - idiomatic way of processing lists of data frames - idiomsHow can I truncate a prefix string in an Oracle SQL query? - sqlSearch algorithm for possible ways of simple, multiple encryption with the alphabet - c ++Why does Integer.parseInt throw a NumberFormatException on input that seems valid? - javaНайдите td с определенным значением, используя xpath - xpathUnable to enable backend in IIS5 - htmlHow can I move CGPath without creating a new one - iphoneEmail body in Symfony 1.4 mailer? - emailAll Articles