Python 크롤링 에러 Connection aborted., RemoteDisconnected 해결방법 (feat. fake_useragent)


Python 크롤링 에러 Connection aborted., RemoteDisconnected 해결방법 (feat. fake_useragent)

pyhon 크롤링/외부 API를 반복적으로 호출하다보면 다음 에러가 발생할 수 있습니다. 'Connection aborted.', RemoteDisconnected('Remote end closed connection without response') 다른 글을 보니 아예 header없이 요청을 보내서 그렇다고도 하네요. res = requests.get(URL) 이런 경우에는 다음처럼 header를 넣으면 해결된다고 합니다. headers = {"User-Agent": "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36"} res = requests.get(..


원문링크 : Python 크롤링 에러 Connection aborted., RemoteDisconnected 해결방법 (feat. fake_useragent)