Do I have to use threads?

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Wed Jan 6 15:11:34 CET 2010


On 04:26 am, adityashukla1983 at gmail.com wrote:
>Hello people,
>
>I have 5 directories corresponding 5  different urls .I want to 
>download
>images from those urls and place them in the respective directories.I 
>have
>to extract the contents and download them simultaneously.I can extract 
>the
>contents and do then one by one. My questions is for doing it 
>simultaneously
>do I have to use threads?
>
>Please point me in the right direction.

See Twisted,

  http://twistedmatrix.com/

in particular, Twisted Web's asynchronous HTTP client,

  http://twistedmatrix.com/documents/current/web/howto/client.html
  http://twistedmatrix.com/documents/current/api/twisted.web.client.html

Jean-Paul



More information about the Python-list mailing list