public void GetContent() { if (docPageParse != null) { HtmlNodeCollection pageNodes = docPageParse.DocumentNode.SelectNodes("//tr"); if (pageNodes != null) { foreach (var item in pageNodes) { HtmlAttributeCollection str = item.Attributes; foreach (var item1 in str) { if (item1.Name == "style") { if (item1.Value == "cursor:pointer;") { VRXParsePage record = new VRXParsePage((item.Id).Replace("td", "")); SaveRecord(record.saveRecord); } } } } } else { SaveError("Content is not null (NOT VIP) " + pageParse); } } }
public void GetContentVip() { //HtmlNode pageNodes = docPageParse.DocumentNode.SelectSingleNode("//tr[@class='vip']"); //Console.WriteLine(pageNodes.Id); if (docPageParse != null) { HtmlNodeCollection pageNodes = docPageParse.DocumentNode.SelectNodes("//tr[@class='vip']"); if (pageNodes != null) { foreach (var item in pageNodes) { VRXParsePage record = new VRXParsePage((item.Id).Replace("td", "")); SaveRecord(record.saveRecord); } } } else { SaveError("Content is not null (VIP) " + pageParse); } }