Answer the question
In order to leave comments, you need to log in
How to parse src attribute in img tag via AngleSharp C#?
I need to parse an image link with a specific class.
For example:
How to extract imgLink to src from img using AngleSharp?
I did this with plain text:
<img class="imgClass" src="imgLink">
IEnumerable<IElement> title = document.QuerySelectorAll("span.bOpxk49");
Answer the question
In order to leave comments, you need to log in
Have you tried reading the documentation?
https://github.com/AngleSharp/AngleSharp/blob/mast...
specifically
Getting Certain Elements
...
//Or directly with CSS selectors
var blueListItemsCssSelector = document.QuerySelectorAll("li.blue");
?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question