Answer the question
In order to leave comments, you need to log in
C# parsing via AngleSharp?
There is this table:
</iron-icon></paper-icon-button></div><span class="column-content tooltip"><img src="./New - Google Play Музыка_files/unnamed.jpg" alt="">HUMBLE.</span></td><td data-col="duration"><span>2:57</span></td><td data-col="artist" data-matched-id="Ag6icjgrnuaumrdrubtg5nr2xki"><span class="column-content tooltip"><a class="text" href="https://play.google.com/music/listen" aria-label="Исполнитель: Кендрик Ламар">Кендрик Ламар</a></span></td><td data-col="album" data-album-artist="Кендрик Ламар" data-matched-id="Bwj4cpxbxjnarequw2jkj5c3a5u"><span class="column-content tooltip"><a class="text" href="https://play.google.com/music/listen" aria-label="Альбом: DAMN.">DAMN.</a></span></td><td data-col="play-count"><span>54</span></td>
Answer the question
In order to leave comments, you need to log in
I have never worked with AngleSharp, but with the help of HtmlAgillityPack and xpath queries, you can pull out the necessary data. For example, for the name it will be like this:
HtmlAgilityPack.HtmlDocument HD = new HtmlAgilityPack.HtmlDocument();
HD.LoadHtml(тут ваш код страницы);
var title = HD.DocumentNode.SelectSingleNode("//span/img/..");
MessageBox.Show(title.InnerText);
//td[@data-col='duration']/span
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question