Skip to content Skip to sidebar Skip to footer

C# Htmlagilitypack Wrapp Taking Several Images, Titles And Links Windows Phone

How to fetch the data on this page? I need to get the image and its corresponding title and display in a list box. Using class or not. I do not know how to do, please help me! Do n

Solution 1:

var data = doc.DocumentNode.SelectSingleNode("//div[@class='content']")
               .Descendants("img")
               .Select(img => new
               {
                   Title = img.Attributes["alt"].Value,
                   Url = img.Attributes["src"].Value,
               })
               .ToList();

Post a Comment for "C# Htmlagilitypack Wrapp Taking Several Images, Titles And Links Windows Phone"