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