configure urllib.urlretrieve timeout

Steve Holden steve at
Sun Oct 7 14:07:45 CEST 2007

Abandoned wrote:
> Hi..
> I want to set 30 second urllib.urlretrieve timeout..
> Because if urllib.urlretrieve can't connect to page wait 1-2 hour...
> I download the images to my server with urlretrieve if you know the
> better way please help me.
> I'm sorry my bad english..
import socket

at the top of your program might help.

Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC/Ltd 
Skype: holdenweb

Sorry, the dog ate my .sigline so I couldn't cat it

More information about the Python-list mailing list