没有人知道如何在代理环境中设置iPython笔记本吗?在代理中使用iPython笔记本
当我试图下面的代码,
URL = 'http://www.imdb.com/search/title?sort=num_votes,desc&start=1&title_type=feature&year=1950,2012' R = requests.get(URL) 打印r.url
这表明:
ConnectionError:HTTPConnectionPool(主机= 'mhsproxy.datastream.com',port = 80):最大重试次数超过url:http://www.imdb.com/search/title?sort=num_votes,desc&start=1&title_type=feature&year=1950,2012(由ProxyError引起('无法连接到代理服务器',错误(10060,'连接尝试失败,因为连接方没有正确响应经过一段时间,或建立连接失败,因为连接主机无法响应')))
在此先感谢!
感谢马特,这是一个有用的建议! – user253546 2016-08-15 20:13:45