comit
This commit is contained in:
parent
b94834ac98
commit
f15572fc77
@ -51,7 +51,7 @@ def download_image(image_url, dst_dir, file_name, timeout=20, proxy_type=None, p
|
||||
print("## Fail: {} {}".format(image_url, e.args))
|
||||
|
||||
|
||||
def download_images(image_urls, dst_dir, file_prefix="img", concurrency=50, timeout=20, proxy_type=None, proxy=None,filesName=None):
|
||||
def download_images(image_urls, dst_dir, file_prefix="img", concurrency=50, timeout=360, proxy_type=None, proxy=None,filesName=None):
|
||||
"""
|
||||
Download image according to given urls and automatically rename them in order.
|
||||
:param timeout:
|
||||
@ -74,4 +74,4 @@ def download_images(image_urls, dst_dir, file_prefix="img", concurrency=50, time
|
||||
future_list.append(executor.submit(
|
||||
download_image, image_url, dst_dir, file_name, timeout, proxy_type, proxy))
|
||||
count += 1
|
||||
concurrent.futures.wait(future_list, timeout=180)
|
||||
concurrent.futures.wait(future_list, timeout=360)
|
||||
Loading…
Reference in New Issue
Block a user