How to download multiple files using asyncio and wget in python?
问题 I want to download many files from dukaskopy. A typical url looks like this. url = 'http://datafeed.dukascopy.com/datafeed/AUDUSD/2014/01/02/00h_ticks.bi5' I tried the answer here but most of the files are of size 0. But when I simply looped using wget(see below), I got complete files. import wget from urllib.error import HTTPError pair = 'AUDUSD' for year in range(2014,2015): for month in range(1,13): for day in range(1,32): for hour in range(24): try: url = 'http://datafeed.dukascopy.com