&LT;的urlopen错误[错误1] _ssl.c:510:错误:14077417:SSL [英] <urlopen error [Errno 1] _ssl.c:510: error:14077417:SSL
问题描述
有谁知道为什么我收到此错误?
SSLError:[错误1] _ssl.c:510:错误:14077438:SSL例程:SSL23_GET_SERVER_HELLO:使用TLSv1
我使用请求或urllib2的时候拿到埃罗,我跑在科迪的code。在code运行正常,当我在我的电脑上的Visual Studio运行它。
我想凑由我的ISP封锁一个网站,所以我使用该网站的代理版本。
进口要求URL ='https://kickass.unblocked.pe/
R = requests.get(URL)
该网站是由CloudFlare的免费SSL主持和需要的服务器名称指示(SNI)。 SNI仅仅是因为2.7.9版本与Python 2.7的支持。我猜你使用的是旧版本。
验证=假
(这通常是一个不好的想法),将没有任何帮助,因为没有SNI握手会失败,因为服务器不知道被请求哪些证书因此将不会发送任何证书,而是一个警报。
Does anyone know why I am getting this error?
SSLError: [Errno 1] _ssl.c:510: error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1
I get the erro when using requests or urllib2, I'm running the code on Kodi. The code runs fine when I run it on Visual Studio on my PC.
I am trying to scrape a website that is blocked by my ISP, so I'm using a proxy version of the site.
import requests
url = 'https://kickass.unblocked.pe/'
r = requests.get(url)
The site is hosted by Cloudflare Free SSL and requires support for Server Name Indication (SNI). SNI is support with Python 2.7 only since version 2.7.9. I guess that you are using an older version.
verify=False
(which is usually a bad idea anyway) will not help here because without SNI the handshake will fail because the server does not know which certificate is requested and thus will not sent any certificate but instead an alert.
这篇关于&LT;的urlopen错误[错误1] _ssl.c:510:错误:14077417:SSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!