Can someone explain to me how I would do error handling to check if the
current proxy timed out on when trying to connect to the web page:

import urllib2
proxy=urllib2.ProxyHandler({'http':'24.232.167.22:80'})
opener=urllib2.build_opener(proxy)
f=opener.open('http://www.whatismyipaddress.com'
<http://www.whatismyipaddress.com%27/>)
print f.read()

If someone could help me, thank you very much, I'm still very new to error
handling
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to