In Python 3, urllib2.ProxyHandler now urllib.request.ProxyHandler .
import urllib.request proxy_support = urllib.request.ProxyHandler({'http' : 'http://127.0.0.1:80'})
Many of the old url* libs were merges with the urllib package. Here is a great explanation.
source share