Re: urllib and proxy

2005-01-28 Thread Fuzzyman
See : http://groups-beta.google.com/group/comp.lang.python/browse_frm/thread/f1ba0de2c739127c/f694e00b1253da1e For urllib you can pass in the 'proxies={}' keyword to the urlopen function. This disables proxy use. Unfortunately it *doesn't* work for urllib2 which is where I need it. Regards, Fuzz

Re: urllib and proxy

2005-01-27 Thread chris
This was helpful. After reading this, I realized you can also just add this atop whatever script imports urllib. Just add after "import urllib": # Disable proxy use. urllib.getproxies = lambda x = None: {} -Chris http://www.fetidcascade.com/ -- http://mail.python.org/mailman/listinfo/python-li