1. import urllib.request  
  2. proxy_support = urllib.request.ProxyHandler({})  
  3. opener = urllib.request.build_opener(proxy_support)  
  4. urllib.request.install_opener(opener)