-
-
Notifications
You must be signed in to change notification settings - Fork 996
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[twitter] fall back to unfiltered search (#2766)
- Loading branch information
Showing
1 changed file
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8d0801a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could lead to a ton of API calls in some circumstances, could you please add a configuration option for Twitter to never use searches?
8d0801a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Main profile URLs (https://twitter.com/USER) use a search since commit 915dba8 and will continue doing so.
The previous functionality for these URLs was moved to https://twitter.com/USER/tweets, which does not use a search, as is the case for https://twitter.com/USER/media and https://twitter.com/USER/with_replies.
If you do not want gallery-dl to do a search, rename all your https://twitter.com/USER URLs to https://twitter.com/USER/tweets, or just don't use main profile URLs.
This commit also only adds a fallback. The unfiltered search does not get used if the filtered search returns at least one Tweet.
8d0801a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I understand. /media and /with_replies can potentially have tweets the other one does not though, correct?
Ideally, the json objects retrieved from /media and /with_replies would be merged (without duplicates). I was hoping the recent changes did that, but I guess I was mistaken.
8d0801a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does https://twitter.com/USER include retweets?
what links i need to paste to gallery-dl to get all medias of user profile after the update? if possible including retweets
8d0801a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, with the option
"retweets": true
(or"retweets": "original"
)Keep
"text-tweets"
at the default (false
) to use the media timeline with the new version.And then simply
That's all you need, but those pesky API limitations are still in place.
You can try to fetch more via providing an tweed ID for the search, like this:
Maybe additionally this one: