Answer the question
In order to leave comments, you need to log in
Does anyone know a good material on parsers?
Suggest good material for learning AngleSharp or other modern C# parsing libraries.
Answer the question
In order to leave comments, you need to log in
AngeSharp is a good library but does not support XPath queries. IMHO, for parsing it is much more efficient to use XPath and, accordingly, the libraries that support it, such as HtmlAgilityPack or the built-in Selenium / Puppeteer tools.
Examples of XPath queries that are very difficult or impossible to write in CSS:
Find element A that contains the text "Login" or "Login":
//div[@class='header__login-head']/a[text()='Login' or text()='Войти']
//div[contains(@class, 'line-header__filter-text') and text()='Планшеты']/../..
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question