赞
踩
报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)'))))怎么解决
我的源码
- import requests
- url = 'https://api.github.com/search/repositories?q=language:python&sort=stars'
- r = requests.get(url)
- print('Status.code: ' , r.status_code)
怎么解决,点击电脑设置-->网络和Internet -->代理--->使用代理服务器关掉
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。