Answer the question
In order to leave comments, you need to log in
Parse desired C# AngleSharp tags?
Hello everyone, I use the AngleSharp parsing library, the img tag itself is easy to parse
var menuPics = document
.All
.Where(p => p.LocalName == "img")
.ToArray();
<img>
the tags where the attribute src
ends with _200x300.jpg
and end up with everything that is in src
?
Answer the question
In order to leave comments, you need to log in
Something like this.
on and then get the attribute from the collection of attributes. There's nothing to explain
I did not understand what kind of library, but something like this:
document.All.Where(p => p.LocalName == "img").OfType<Img>().Where(p => p.Src.EndsWith("_200x300.jpg")).Select(p => p.Src).ToArray()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question