D
dr_springfield
Guest
I'm very new to python... ran into this error
code:
import urllib
proxies = proxies={'http': 'http://61.131.59.66:8080'}
filehandle = urllib.urlopen('http://whatismyip.com', proxies=proxies)
error:
AttributeError: 'NoneType' object has no attribute 'read'
The problem is in the proxies variable... running without it (proxies=None) generates no error. Anyone know python?
p.s. I took this code straight off the python website describing the urllib module... so it *should* work...
code:
import urllib
proxies = proxies={'http': 'http://61.131.59.66:8080'}
filehandle = urllib.urlopen('http://whatismyip.com', proxies=proxies)
error:
AttributeError: 'NoneType' object has no attribute 'read'
The problem is in the proxies variable... running without it (proxies=None) generates no error. Anyone know python?
p.s. I took this code straight off the python website describing the urllib module... so it *should* work...