当前位置:   article > 正文

报requests.exceptions.ProxyError: HTTPSConnectionPoolXXXXXX怎么解决_(caused by proxyerror('unable to connect to proxy'

(caused by proxyerror('unable to connect to proxy', sslerror(ssleoferror(8,

报requests.exceptions.ProxyError: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /search/repositories?q=language:python&sort=stars (Caused by ProxyError('Unable to connect to proxy', SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1124)'))))怎么解决

我的源码

  1. import requests
  2. url = 'https://api.github.com/search/repositories?q=language:python&sort=stars'
  3. r = requests.get(url)
  4. print('Status.code: ' , r.status_code)

怎么解决,点击电脑设置-->网络和Internet -->代理--->使用代理服务器关掉

 

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/175602
推荐阅读
相关标签
  

闽ICP备14008679号