diff --git a/python/feedparser.py b/python/feedparser.py index 80d37a07db5aba04cfc522394e04f1019b226c45..cd3cb54c9c2812aab205235f24951979a85a2f49 100644 --- a/python/feedparser.py +++ b/python/feedparser.py @@ -3829,6 +3829,10 @@ def parse(url_file_stream_or_string, etag=None, modified=None, agent=None, refer :return: A :class:`FeedParserDict`. ''' + # circumvent GDPR redirect on Tumblr feeds by faking a different user agent + if 'tumblr.com' in url_file_stream_or_string: + agent = "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" + if handlers is None: handlers = [] if request_headers is None: