proxy = urllib.request.ProxyHandler({})
opener = urllib.request.build_opener(proxy)
urllib.request.install_opener(opener)
socket = urllib.request.urlopen('http://www.google.com')
content = socket.read()
How to ignore windows proxy settings with python urllib?