I m using urllib.urlopen with some http proxies and sometimes (probably when they require authorization) I get the following prompt printed into the console:
Enter username for Private Proxy Access (country) at xxx.xxx.xxx.xxx:xxxx
How can I raise an exception on such thing happening?
Here s the example:
from urllib import urlopen
p = 64.79.209.238:36867
print urlopen( http://google.com , proxies={ http : http:// +p})
In case the mentioned proxy dies too soon, here are some replacements 64.79.197.36:43444
, 64.79.209.203:34968
, 64.79.197.36:43444
, 209.59.207.197:3438