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(); }
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; } } } }