Commit 9bc7ba58 by lichenggang

'minus'

parent ac071c7b
Showing with 5 additions and 5 deletions
...@@ -170,13 +170,13 @@ class Task(object): ...@@ -170,13 +170,13 @@ class Task(object):
if __name__ == '__main__': if __name__ == '__main__':
p = Pool(3) # p = Pool(3)
for req in get_url(): for req in get_url():
# for req in [('https://www.chip1stop.com/HKG/zh/view/searchResult/SearchResultTop?classCd=081015&classLv=3&subWinSearchFlg=false&searchType=2&dispAllFlg=true&searchFlg=false&direct_Flg=true',0)]: # for req in [('https://www.chip1stop.com/HKG/zh/view/searchResult/SearchResultTop?classCd=081015&classLv=3&subWinSearchFlg=false&searchType=2&dispAllFlg=true&searchFlg=false&direct_Flg=true',0)]:
url = req[0] url = req[0]
cat_id = req[1] cat_id = req[1]
p.apply_async(gen_table_doms, args=(url, cat_id)) # p.apply_async(gen_table_doms, args=(url, cat_id))
# gen_table_doms(url,cat_id) gen_table_doms(url,cat_id)
p.close() # p.close()
p.join() # p.join()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment