Как брать определенные эелементы, без их имен,классов и тп
Вроде это можно взять спомощью css, но как-то не получается
html
<ul>
<li> · <a href="/index.php?a=index&id=125" style="color:" >Car</a></li>
<li> · <a href="/index.php?a=index&id=26" style="color:" >dresses</a></li>
<li> · <a href="/index.php?id=25" style="color:rgb(255, 0, 0)" >Shoes</a></li>
<li> · <a href="/index.php?id=23" style="color:" >Busted</a></li>
<li> · <a href="/index.php?a=index&id=24" style="color:" >Motocross</a></li>
</ul>
и таких куча li, я думаю, может можно как-то по style значению искать
var config = Configuration.Default.WithDefaultLoader().WithJs();
var context = BrowsingContext.New(config);
//description item_table-description
//Just get the DOM representation
Console.WriteLine(allhtml);
IDocument document = await context.OpenAsync(req => req.Content(allhtml));
var all_web = document.QuerySelectorAll("ul > li:hover");
foreach (var el_web in all_web)
{
Console.WriteLine(el_web.TextContent);
}
У меня берутся все li, но мне нужны определенные