Commit 29d2c7f3 authored by litaolemo's avatar litaolemo

update

parent b0f900a3
......@@ -63,7 +63,7 @@ parser.add_argument('-processes', '--processes_num', default=2, type=int,
help=('Processes number to be used in multiprocessing'))
parser.add_argument('-exit_hour', '--exit_hour', default=22, type=int,
help=('Processes number to be used in multiprocessing'))
parser.add_argument('-thead', '--thead_num', default=2, type=int,
parser.add_argument('-thead', '--thead_num', default=8, type=int,
help=('thead_num number to be used in multiprocessing'))
parser.add_argument('-v', '--video', default="False", type=str,
help=('Is or not run video_page_crawler'))
......@@ -183,8 +183,8 @@ def single_thead(processe,name):
data_list = []
while True:
import pdb
pdb.set_trace()
# import pdb
# pdb.set_trace()
now = datetime.datetime.now()
# if now.hour >= exit_hour:
# sys.exit()
......@@ -284,8 +284,8 @@ if __name__ == "__main__":
print(kwargs_dict)
# future = executor.submit(start_crawler,processe,name)
# futures.append(future)
print('Processe %s start' % processe)
executor.shutdown(True)
# print('Processe %s start' % processe)
# executor.shutdown(True)
for future in futures:
print(future)
......
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 to comment