Python 2.6 -> Python 3 (ProxyHandler)
Posted
by blah
on Stack Overflow
See other posts from Stack Overflow
or by blah
Published on 2010-05-26T07:54:36Z
Indexed on
2010/05/26
8:01 UTC
Read the original article
Hit count: 389
Hallo,
I wrote a script that works with a proxy (py2.6x):
proxy_support = urllib2.ProxyHandler({'http' : 'http://127.0.0.1:80'})
But in py3.11x there is no urllib2 just a urllib... and that doesnt support the ProxyHandler
How can I use a proxy with urllib? Isnt Python 3 newer then Python 2? Why did they remove urllib2 in a newer version?
© Stack Overflow or respective owner