multi-down in threading module

守株待兔 1248283536 at
Thu Sep 8 06:50:52 CEST 2011

i want to download data in  multiprocess ,i know the threading structure,but i can't finish it,
would you mind to revise it ?
any advice appreciated.
import urllib
import threading
URL = ""
symbols = ('GGP', 'JPM', 'AIG', 'AMZN','GGP', 'JPM', 'AIG', 'AMZN')
url =[ URL % '+'.join(sym)  for sym in symbols]


def  down(url):
    print urllib.urlopen(url).read()
for i in num:   #these code  i can't finish 
    t=threading.Thread(target=down,args=  )
for i in nmu:

for i in num:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list