diff --git a/gallery_dl/extractor/twitter.py b/gallery_dl/extractor/twitter.py index cc4667b0..cfab4d03 100644 --- a/gallery_dl/extractor/twitter.py +++ b/gallery_dl/extractor/twitter.py @@ -1418,6 +1418,12 @@ class TwitterAPI(): self.extractor.wait(until=until, seconds=seconds) continue + if response.status_code == 403 and \ + not self.headers["x-twitter-auth-type"] and \ + endpoint == "/2/search/adaptive.json": + raise exception.AuthorizationError( + "Login required to access search results") + # error try: data = response.json()