I'm hoping to use pySmartDL for my project to handle downloads. But pySmartDL doesn't support parallel downloads and the execution thread stops until a download is finished. I tried using WorQ to handle the issue. But with that download doesn't happen after I start it.Is there a better way to address this issue? Or is there any other Python libraries that support parallel downloads?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
pySmartDL
already supports nonblocking multithreaded downloads:
from pySmartDL import SmartDL
files = [URL1,
URL2,
URL3]
objs = SmartDL(files, progress_bar=False)
objs.start(blocking=False)
while not objs.isFinished():
# Do something else