Re: my multi-download program can't finish
On 08/09/2011 05:24, 守株待兔 wrote: here is the program, # basic structure,omit something import Queue import httplib2 import threading jobs = Queue.Queue() name=something #omit ,it is a web list to download for x in name: jobs.put(x) def download(): while not jobs.empty():
Re: my multi-download program can't finish
On Thu, 8 Sep 2011 02:24 pm 守株待兔 wrote: [...] > try: > url = jobs.get() > hx = httplib2.Http() > resp, content = hx.request(url, headers=headers) > jobs.task_done() > except: > print "wr