From baad7b0fa5045d542eb7e04f8a0d195edf0b043d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 14 Nov 2018 11:48:09 +0100 Subject: [PATCH] [twitter] unpack API responses when logged in (closes #123) --- gallery_dl/extractor/twitter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gallery_dl/extractor/twitter.py b/gallery_dl/extractor/twitter.py index 32879444..338e6015 100644 --- a/gallery_dl/extractor/twitter.py +++ b/gallery_dl/extractor/twitter.py @@ -84,6 +84,8 @@ class TwitterExtractor(Extractor): while True: data = self.request(url, params=params, headers=headers).json() + if "inner" in data: + data = data["inner"] for tweet in text.extract_iter( data["items_html"], '