-
카테고리
-
해결 여부
미해결
urlopen('http://pythonscraping.com/pages/page1.html') 했을때 SSLCertVirificationError가 발생했나요?
22.01.04 16:22 작성 조회수 153
0
SSLCertVerificationError Traceback (most recent call last)
~\anaconda3\lib\urllib\request.py in do_open(self, http_class, req, **http_conn_args) 1353 try: -> 1354 h.request(req.get_method(), req.selector, req.data, headers,
1355 encode_chunked=req.has_header('Transfer-encoding'))
이런 오류 경험하신분 있으신가요??
답변을 작성해보세요.
0
나비
질문자2022.01.04
import urllib.request
import certifi
import ssl
html = urllib.request.urlopen('https://pythonscraping.com/pages/page1.html', context=ssl.create_default_context(cafile=certifi.where()))
--
이걸로 해결했습니다
답변 1