Hello
I'm having some trouble with my script. It's supposed to open a website trough a proxy but I get, always, this error, with several proxies that I'm trying to...
What could it be?
Traceback (most recent call last):
File "C:\Users\Shady\Desktop\ptzplace.3.0 - Copy.py", line 43, in <module>
h = urllib.urlopen(website, proxies = {'http': proxy})
File "C:\Python26\lib\urllib.py", line 86, in urlopen
return opener.open(url)
File "C:\Python26\lib\urllib.py", line 200, in open
return self.open_unknown_proxy(proxy, fullurl, data)
File "C:\Python26\lib\urllib.py", line 219, in open_unknown_proxy
raise IOError, ('url error', 'invalid proxy for %s' % type, proxy)
IOError: [Errno url error] invalid proxy for http: 'xxx.xxx.xxx.xxx'
The script is this
proxylist = ['79.174.195.84:80',
'79.174.195.82:80',
'80.233.184.227:8080',
'79.174.195.80:80',
'80.233.184.226:8080',
'79.174.33.95:3128']
for proxy in proxylist:
h = urllib.urlopen(website, proxies = {'http': proxy})