示例#1
0
        public void test111()
        {
            //1677061
            parsePage npp = new parsePage("https://item.jd.com/1677061.html");

            npp.run();
            //parsePage npp1 = new parsePage("https://item.jd.com/3752769.html");
            //npp1.run();
        }
示例#2
0
        public void start()
        {
            int i = 0;

            foreach (string goodUrl in hashSet)
            {
                if (goodUrl == "2879902")
                {
                    break;
                }
                else
                {
                    parsePage npp = new parsePage("https:" + goodUrl);
                    Thread    th  = new Thread(new ThreadStart(npp.run));
                    th.Start();

                    if (i++ == 35)
                    {
                        break;
                    }
                }
            }
        }