protected override void NoTask()
        {
            string nikeUrl = "https://lining.tmall.com/i/asynSearch.htm?_ksTS=1489859374230_126&callback=jsonp127&mid=w-14681080882-0&wid=14681080882&path=/search.htm&&search=y&spm=a1z10.3-b-s.w4011-14681080882.520.uk4GXH&scene=taobao_shop&orderType=hotsell_desc&keyword=%D0%AC&tsearch=y&pageNo=";

            ShowMsg("<获取商品列表>");
            PageDataHelper ph         = new PageDataHelper();
            var            resultList = ph.GetIndexList(nikeUrl, 1, new List <urlInfo>());

            ShowMsg("<获取商品列表成功>");
            AddTask(resultList);
        }
Example #2
0
        protected override void NoTask()
        {
            string nikeUrl = "https://adidas.tmall.com/view_shop.htm?spm=a1z10.3-b-s.w4011-14687612648.108.ijX6sv&type=p&newHeader_b=s_from&searcy_type=item&from=.shop.pc_2_searchbutton&search=y&orderType=hotsell_desc&keyword=%D0%AC&tsearch=y&pageNo=";

            ShowMsg("<获取商品列表>");
            PageDataHelper ph         = new PageDataHelper();
            var            resultList = ph.GetIndexList(nikeUrl, 1, new List <urlInfo>());

            ShowMsg("<获取商品列表成功>");
            AddTask(resultList);
        }
        protected override void NoTask()
        {
            string nikeUrl = "https://nike.tmall.com/view_shop.htm?spm=a1z10.3-b-s.w4011-14234872766.169.XC2eb5&type=p&newHeader_b=s_from&searcy_type=item&from=.shop.pc_2_searchbutton&search=y&keyword=%D0%AC&tsearch=y&pageNo=";

            ShowMsg("<获取商品列表>");
            PageDataHelper ph         = new PageDataHelper();
            var            resultList = ph.GetIndexList(nikeUrl, 1, new List <urlInfo>());

            Console.WriteLine();
            ShowMsg("<获取商品列表成功>");
            AddTask(resultList);
        }
        protected override void NoTask()
        {
            List <urlInfo> indexList = new List <urlInfo>();

            string[] usls = new string[] {
                "https://skechers.tmall.com/i/asynSearch.htm?_ksTS=1489735339386_178&callback=jsonp179&mid=w-15004456963-0&wid=15004456963&path=/category-526898310.htm&&spm=a1z10.5-b-s.w4011-15004456963.392.QmjRFT&scene=taobao_shop&catId=526898310&scid=526898310&pageNo=",                //女鞋
                "https://skechersnx.tmall.com/i/asynSearch.htm?_ksTS=1489735707723_125&callback=jsonp126&mid=w-15038655369-0&wid=15038655369&path=/search.htm&&search=y&spm=a1z10.3-b-s.w4011-15038655369.380.DnM87k&scene=taobao_shop&orderType=defaultSort&keyword=%D0%AC&tsearch=y&pageNo=", //男鞋
                "https://skechersyd.tmall.com/i/asynSearch.htm?_ksTS=1497596125893_364&callback=jsonp365&mid=w-15008901561-0&wid=15008901561&path=/search.htm&&search=y&spm=a1z10.3-b-s.w4011-15008901561.83.RqWGVQ&viewType=grid&keyword=%D0%AC&tsearch=y&pageNo=",                            //童鞋
                "https://skechersyd.tmall.com/i/asynSearch.htm?_ksTS=1489736155257_57&callback=jsonp58&mid=w-15008901561-0&wid=15008901561&path=/search.htm&&search=y&spm=a1z10.3-b-s.w4011-15008901561.83.lPurZK&scene=taobao_shop&orderType=defaultSort&keyword=%D0%AC&tsearch=y&pageNo="     //运动鞋
            };
            ShowMsg("<获取商品列表>");
            foreach (var url in usls)
            {
                PageDataHelper ph     = new PageDataHelper();
                var            result = ph.GetIndexList(url, 1, new List <urlInfo>());
                indexList.AddRange(result);
            }
            ShowMsg("<获取商品列表成功>");
            AddTask(indexList);
        }
        protected override void NoTask()
        {
            string[] antaUrl = new string[]
            {
                "https://anta.tmall.com/view_shop.htm?spm=a1z10.3-b-s.w4011-14727303322.493.1LywM1&type=p&search=y&newHeader_b=s_from&searcy_type=item&from=.shop.pc_2_searchbutton&keyword=%D0%AC&tsearch=y&pageNo=",
                "https://antakids.tmall.com/view_shop.htm?spm=a1z10.3-b-s.w4011-14681036885.92.kaIptO&shopId=106096685&search=y&orderType=hotsell_desc&keyword=Ь&pageNo="
            };

            ShowMsg("<获取商品列表>");
            var resultList = new List <urlInfo>();

            foreach (var item in antaUrl)
            {
                PageDataHelper ph  = new PageDataHelper();
                var            aaa = ph.GetIndexList(item, 1, new List <urlInfo>());
                resultList.AddRange(aaa);
                Console.WriteLine("共有" + resultList.Count + "个");
            }
            ShowMsg("<获取商品列表成功>");
            AddTask(resultList);
        }