Example #1
0
 public override List <Chip> Parse(string url)
 {
     HtmlDocumentNode = Web.Load(url).DocumentNode;
     try
     {
         ResultGroups = HtmlDocumentNode.SelectNodes("//a[@class='link group-header']")
                        .Select(n => n.GetAttributeValue("href", null));
     }
     catch (ArgumentNullException e)
     {
         ResultGroups = null;
     }
     return(GetChipList());
 }
Example #2
0
 internal override IEnumerable <string> GetResultPrice()
 {
     return(HtmlDocumentNode.SelectNodes("//div[@class='denoPrice']")
            .Select(n => n.InnerText));
 }
Example #3
0
 internal override IEnumerable <string> GetResultAvailability()
 {
     return(HtmlDocumentNode.SelectNodes("//div[@class='butt-add']/span")
            .Select(n => n.InnerText));
 }
Example #4
0
 internal override IEnumerable <string> GetResultPictureLinks()
 {
     return(HtmlDocumentNode.SelectNodes("//div[@class='cat-pic']/a/img")
            .Select(n => n.GetAttributeValue("src", null)));
 }
Example #5
0
 internal override IEnumerable <string> GetResultLinks()
 {
     return(HtmlDocumentNode.SelectNodes("//div[@class='cat-item']/h3/a")
            .Select(n => n.GetAttributeValue("href", null)));
 }
Example #6
0
 internal override IEnumerable <string> GetResultNames()
 {
     return(HtmlDocumentNode.SelectNodes("//div[@class='cat-item']/h3/a")
            .Select(n => n.InnerText));
 }