본문 바로가기
● 크롤링, 자동화/BeautifulSoup

[에러해결] ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

by 0ver-grow 2021. 5. 19.
반응형

ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

 

헤더를 추가해줌으로서 해결

headers = {'User-Agent':'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36'}
res = requests.get('',headers=headers )
반응형