Skip to content

Commit

Permalink
[twitter] update to bookmark timeline v2 (#3859)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Apr 3, 2023
1 parent 34699fb commit 3846ce0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gallery_dl/extractor/twitter.py
Expand Up @@ -1192,14 +1192,14 @@ def user_likes(self, screen_name):
return self._pagination_tweets(endpoint, variables)

def user_bookmarks(self):
endpoint = "/graphql/Xq0wQSWHlcfnXARLJGqTxg/Bookmarks"
endpoint = "/graphql/RV1g3b8n_SGOHwkqKYSCFw/Bookmarks"
variables = {
"count": 100,
}
features = self.features_pagination.copy()
features["graphql_timeline_v2_bookmark_timeline"] = False
features["graphql_timeline_v2_bookmark_timeline"] = True
return self._pagination_tweets(
endpoint, variables, ("bookmark_timeline", "timeline"), False,
endpoint, variables, ("bookmark_timeline_v2", "timeline"), False,
features=features)

def list_latest_tweets_timeline(self, list_id):
Expand Down

0 comments on commit 3846ce0

Please sign in to comment.