public virtual void Parser(HtmlNode node) { communityThumbnailURL = node.SelectSingleNode("div[@class='log-author ']/a/img[@class='nicorepo-lazyimage']").Attributes["data-src"].Value; communityURL = node.SelectSingleNode("div[@class='log-content']/div[@class='log-body']/a[@class='author-community']").Attributes["href"].Value; communityName = node.SelectSingleNode("div[@class='log-content']/div[@class='log-body']/a[@class='author-community']").InnerText; userURL = node.SelectSingleNode("div[@class='log-content']/div[@class='log-body']/a[last()]").Attributes["href"].Value; userName = node.SelectSingleNode("div[@class='log-content']/div[@class='log-body']/a[last()]").InnerText; //なんかうまく行かないのでボツ //communityThumbnailURL = node.SelectSingleNode("div[@class='log-content']/div[@class='log-details log-target log-target-live-program']/div[@class='log-target-thumbnail']/a/img[@class='live_program']").Attributes["src"].Value; broadcastURL = node.SelectSingleNode("div[@class='log-content']/div[@class='log-details log-target log-target-live-program']/div[@class='log-target-info']/a").Attributes["href"].Value; broadcastTitle = node.SelectSingleNode("div[@class='log-content']/div[@class='log-details log-target log-target-live-program']/div[@class='log-target-info']/a").InnerText; longago = new NicorepoItemSubLongago(node); nicoru = new NicorepoItemSubNicoru(node); }
public virtual void Parser(HtmlNode node) { userURL = node.SelectSingleNode("div[@class='log-content']/div[@class='log-body']/a[last()]").Attributes["href"].Value; userName = node.SelectSingleNode("div[@class='log-content']/div[@class='log-body']/a[last()]").InnerText; stampName = node.SelectSingleNode("div[@class='log-content']/div[@class='log-details log-target log-target-stamp']/div[@class='log-target-info']/a").InnerText; stampURL = node.SelectSingleNode("div[@class='log-content']/div[@class='log-details log-target log-target-stamp']/div[@class='log-target-info']/a").Attributes["href"].Value; stampImageURL = node.SelectSingleNode("div[@class='log-content']/div[@class='log-details log-target log-target-stamp']/div[@class='log-target-thumbnail']/a/img").Attributes["data-src"].Value; longago = new NicorepoItemSubLongago(node); nicoru = new NicorepoItemSubNicoru(node); }