[Python] requests.exceptions.TooManyRedirects: Exceeded 30 redirects 오류해결
urllib2.HTTPError: HTTP Error 301: The HTTP server returned a redirect error that would lead to an infinite loop. The last 30x error message was: Moved Permanently 위와 같은 오류라거나 아래와 같은 오류를 경험하신 분이라면 이번에 소개 드릴 해결책으로 해결할 수 있으리라 생각합니다. Traceback (most recent call last): ... requests.exceptions.TooManyRedirects: Exceeded 30 redirects. 해결법 #1. 아래와 같이 requests 모듈에서 get 함수를 사용할 때 headers 에 user-agent 를 추..