Re: urllib2.ProxyHandler

2006-04-20 Thread John J. Lee
"rx" <[EMAIL PROTECTED]> writes: > I'm trying to hide my IP with the following code: > > import urllib2 > proxy=[urllib2.ProxyHandler({'http':'24.232.167.22:80'})] > opener=urllib2.build_opener(proxy) build_opener takes *args, not a list:

urllib2.ProxyHandler

2006-04-18 Thread rx
I'm trying to hide my IP with the following code: import urllib2 proxy=[urllib2.ProxyHandler({'http':'24.232.167.22:80'})] opener=urllib2.build_opener(proxy) f=opener.open('http://www.whatismyipaddress.com') print f.read() But that didn't work - my real