/// <summary> /// 采集商品列表 /// </summary> /// <param name="spiderCategory"></param> /// <returns></returns> public static List<ProductInfo> SpiderProductList(SpiderCategoryInfo spiderCategory) { if (spiderDictionary.ContainsKey(spiderCategory.ECPlatformId)) { return spiderDictionary[spiderCategory.ECPlatformId].SpiderProductList(spiderCategory); } return null; }
public List<ProductInfo> SpiderProductList(SpiderCategoryInfo spiderCategory) { throw new NotImplementedException(); }
public List<ProductInfo> SpiderProductList(SpiderCategoryInfo spiderCategory) { WebBrowerManager.Instance.Setup(new cEXWB()); WebBrowerManager.Instance.TimeOut = 15; var html = WebBrowerManager.Instance.Run(spiderCategory.CategoryUrl); var htmlDocument = HtmlAgilityPackHelper.GetHtmlDocument(html); htmlDocument.GetElementbyId("search_result"); return new List<ProductInfo>(); }