0
我試着使用HtmlAgilityPack,但它不是完全的WinRT支持,獲取圖像鏈接從HTML在Windows Store應用
的「DocumentElement.SelectNodes
」不上的WinRT
如何才能得到工作來自HTML頁面(或HTML字符串)的圖片鏈接(src)?
我試着使用HtmlAgilityPack,但它不是完全的WinRT支持,獲取圖像鏈接從HTML在Windows Store應用
的「DocumentElement.SelectNodes
」不上的WinRT
如何才能得到工作來自HTML頁面(或HTML字符串)的圖片鏈接(src)?
的 「DocumentElement.SelectNodes」 不上的WinRT
工作
然後使用Linq。這就是我所能做的一切
var imgLinks = doc.DocumentNode.Descendants("img")
.Select(img => img.Attributes["src"].Value)
.ToList();