From 9d3f86dbcda6d9e73b1cc9f36b00dc8857a914b9 Mon Sep 17 00:00:00 2001 From: thatfuckingbird <67429906+thatfuckingbird@users.noreply.github.com> Date: Fri, 4 Nov 2022 17:49:45 +0100 Subject: [PATCH] [twitter] update URL for syndication API (#3160) Twitter changed the URL format to access tweet data through their syndication API. --- gallery_dl/extractor/twitter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gallery_dl/extractor/twitter.py b/gallery_dl/extractor/twitter.py index ba0597eb..24b22ac5 100644 --- a/gallery_dl/extractor/twitter.py +++ b/gallery_dl/extractor/twitter.py @@ -1456,8 +1456,8 @@ class TwitterAPI(): self.extractor.log.debug("Skipping %s (\"%s\")", tweet_id, text) def _syndication_tweet(self, tweet_id): - tweet = self.extractor.request( - "https://cdn.syndication.twimg.com/tweet?id=" + tweet_id).json() + base_url = "https://cdn.syndication.twimg.com/tweet-result?id=" + tweet = self.extractor.request(base_url + tweet_id).json() tweet["user"]["description"] = "" tweet["user"]["entities"] = {"description": {}}