안녕하세요. 현재 웹 스크래핑을 공부중인데 해당 페이지에서 막혔습니다. ^^
그런데 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)'))) ----------------------------------------------------------------------------------------------------------------------------