Python urllib.request.urlopen() returning error 10061?

亡梦爱人 提交于 2019-11-29 07:37:42

The error comes from operating system level and is not related to Python. It would be same with any programming language.

Contact your network administration to see what's the matter unless you can resolve firewall issues yourself. If you need a HTTP proxy then you can configure one for urllib.

michaelgo

urllib takes the proxy settings from Internet Explorer, which is usually under Tools->Internet Options->Connections->Lan Settings

If you have a proxy, make sure it's correct in IE, or set it when using urllib. If you don't use a proxy to browse, make sure that the proxy settings in IE are empty.

I was struggling with this issue few hours until I realized that a 3rd party app I once installed changed the setting in IE, while i was surfing happily in Firefox without a proxy.


Another solution is in the this link which shows how to force urllib to ignore IE's proxy settings

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!