urllib2 - safe way to download something
Steven D'Aprano
steve at REMOVE-THIS-cybersource.com.au
Fri Nov 14 10:12:18 EST 2008
On Fri, 14 Nov 2008 06:35:27 -0800, konstantin wrote:
> Hi,
>
> I wonder if there is a safe way to download page with urllib2. I've
> constructed following method to catch all possible exceptions.
See here:
http://niallohiggins.com/2008/04/05/python-and-poor-documentation-
urllib2urlopen-exception-layering-problems/
There are probably others as well... I seem to recall getting
socket.error at some point myself.
--
Steven
More information about the Python-list
mailing list