Hola, Señalo en negrita lo que creo que genera el fallo: El sáb., 20 jun. 2020 a las 16:24, Javier Perez (<javierpe...@perasalvino.es>) escribió:
> > El 20 jun 2020, a las 14:36, lasizoillo <lasizoi...@gmail.com> escribió: > > Justo te has comido la parte más importante del volcado de la pila. Al > final es donde te desvela el error. Entendiendo a leerlo puedes saber la > línea exacta del código que te está fallando. > > Supongo que esto, si sabes inglés, te resultará muy útil > https://realpython.com/python-traceback/ > > Un saludo, > > Javi > > > > Gracias tocayo, > > > Jo, ya es mala suerte. > > Te pongo el resto a ver si me puedes ayudar: > > > File > "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/http/client.py", > line 1409, in connect > self.sock = self._context.wrap_socket(self.sock, > File > "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ssl.py", > line 500, in wrap_socket > return self.sslsocket_class._create( > File > "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ssl.py", > line 1040, in _create > self.do_handshake() > File > "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ssl.py", > line 1309, in do_handshake > self._sslobj.do_handshake() > ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate > verify failed: self signed certificate in certificate chain (_ssl.c:1108) > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/Users/javierpm/Documents/Documentos > personales/Javier/Python/Proyectos/App fondos de inversión/app > actual/fondos.py", line 37, in <module> > raspado(" > https://markets.ft.com/data/funds/tearsheet/performance?s=LU0114721177:EUR > ") > File "/Users/javierpm/Documents/Documentos > personales/Javier/Python/Proyectos/App fondos de inversión/app > actual/fondos.py", line 23, in raspado > html = gazpacho.get(url) > File > "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/gazpacho/get.py", > line 32, in get > with opener.open(url) as f: > File > "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", > line 525, in open > response = self._open(req, data) > File > "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", > line 542, in _open > result = self._call_chain(self.handle_open, protocol, protocol + > File > "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", > line 502, in _call_chain > result = func(*args) > File > "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", > line 1393, in https_open > return self.do_open(http.client.HTTPSConnection, req, > File > "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", > line 1353, in do_open > raise URLError(err) > urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] > *certificate > verify failed: self signed certificate in certificate chain* > (_ssl.c:1108)> > >>> > > > > > Por algún motivo te estás conectando a un sitio que está sirviendo con un certificado autofirmado. Es extraño porque el sitio al que apuntas según tu código sirve las páginas con un certificado válido. ¿Tal vez estés realizando las pruebas usando un proxy? Un saludo -- G
_______________________________________________ Python-es mailing list Python-es@python.org https://mail.python.org/mailman/listinfo/python-es