○ 크롤링, 자동화/BeautifulSoup
크롤링 과정에서 나타난 HTTPSConnectionPool(URL, port=443) 에러
0ver-grow
2021. 5. 15. 22:52
반응형
res = requests.get('URL')
위 코드를 입력했더니 에러가 발생했다.
에러명
HTTPSConnectionPool(host='www.work.go.kr', port=443): Max retries exceeded with url: /empSpt/empNews/retrieveEmpNewsList.do?pageIndex=1&sortOrderField=dtm&sortOrderBy=DESC&newsId=&searchRegionCd=&searchStdt=&searchEndt=&searchKwrd=&pageUnit=50 (Caused by SSLError(SSLError(1, '[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1123)')))
찾아보니 하단처럼 verify=False를 입력하면 해결된다고 했으나
res = requests.get('URL',verify=False)
똑같은 에러 발생.
원인이 뭘까?
pyOpenSSL 업데이트 때문이다.
pip install pyOpenSSL
그런데 아래와 같이 입력하면
import ssl
print(ssl.OPENSSL_VERSION)
OpenSSL 1.1.1h 22 Sep 2020 라고 뜬다.
https://sun2day.tistory.com/218
SSLError: HTTPSConnectionPool(host='localhost', port=443): Max retries exceeded with url: /api/v4/users/login (Caused by SSLErro
requests.exceptions.SSLError: HTTPSConnectionPool(host='localhost', port=443): Max retries exceeded with url: /api/v4/users/login (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines',..
sun2day.tistory.com
반응형