[혼공데이터분석] page124 질문이요~~

51 views
Skip to first unread message

권오훈 (삐뚤어질테닷!)

unread,
Jun 1, 2023, 11:10:34 PM6/1/23
to 머신러닝/딥러닝 도서 Q&A
안녕하세요. 현재 웹 스크래핑을 공부중인데 해당 페이지에서 막혔습니다. ^^
그런데 P124의 손코딩을 해 보니 결과가 하기와 같은 에러가 발생합니다.
웹 상에서 해당 에러를 찾아보고 이것저것 해 보았지만 해당 에러는 계속 발생합니다.
원인이 무엇이고 어떤 조치를 해 보아야 하는지요? 감사합니다.
---------------아래-----------------
SSLError Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 702 # Make the request on the httplib connection object. --> 703 httplib_response = self._make_request( 704 conn,

19 frames
SSLError: [SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:1007) During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) MaxRetryError: HTTPSConnectionPool(host='www.yes24.com', port=443): Max retries exceeded with url: /Product/Search?domain=BOOK&query=9791190090018 (Caused by SSLError(SSLError(1, '[SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:1007)'))) During handling of the above exception, another exception occurred: SSLError Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 515 if isinstance(e.reason, _SSLError): 516 # This branch is for urllib3 v1.22 and later. --> 517 raise SSLError(e, request=request) 518 519 raise ConnectionError(e, request=request) SSLError: HTTPSConnectionPool(host='www.yes24.com', port=443): Max retries exceeded with url: /Product/Search?domain=BOOK&query=9791190090018 (Caused by SSLError(SSLError(1, '[SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:1007)')))
----------------------------------------------------------------------------------------------------------------------------

Haesun Park

unread,
Jun 2, 2023, 1:30:09 AM6/2/23
to 권오훈 (삐뚤어질테닷!), 머신러닝/딥러닝 도서 Q&A
안녕하세요. 박해선입니다.
이 에러는 yes24에서 적절하지 않은 ssl 설정을 사용하기 때문으로 보입니다.
In [8] 셀의 코드를 사용하시면 에러를 피하실 수 있습니다.
감사합니다.

2023년 6월 2일 (금) 오후 12:10, 권오훈 (삐뚤어질테닷!) <xzb...@gmail.com>님이 작성:
--
이 메일은 Google 그룹스 '머신러닝/딥러닝 도서 Q&A' 그룹에 가입한 분들에게 전송되는 메시지입니다.
이 그룹에서 탈퇴하고 더 이상 이메일을 받지 않으려면 ml-dl-book-qn...@googlegroups.com에 이메일을 보내세요.
웹에서 이 토론을 보려면 https://groups.google.com/d/msgid/ml-dl-book-qna/2dd37ff7-9072-4331-9282-a53fbc40102dn%40googlegroups.com을(를) 방문하세요.
Reply all
Reply to author
Forward
0 new messages