Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Twitter] How to bypass twitter limit? #2766

Closed
maxman2103 opened this issue Jul 17, 2022 · 10 comments
Closed

[Twitter] How to bypass twitter limit? #2766

maxman2103 opened this issue Jul 17, 2022 · 10 comments

Comments

@maxman2103
Copy link

I tried to download from a twitter account that has over 7k images but it downloaded around 2k(1932), is there anyway to extend/bypass the limit?

I am using the latest version. I also logged in config so it can download NSFW

this is the account I tried to download form https://twitter.com/kyo_2b/media

@mikf
Copy link
Owner

mikf commented Jul 18, 2022

Use the main profile URL (https://twitter.com/kyo_2b),
or do a search (https://twitter.com/search?q=from:kyo_2b)

Since version 1.22.0 main profile URLs download from https://twitter.com/kyo_2b/media first and then do search starting from the last tweet in the media timeline.

@maxman2103
Copy link
Author

Thanks it worked, I tried both,

https://twitter.com/search?q=from:kyo_2b
is working well and bypass the download limit. but
https://twitter.com/kyo_2b
did not work same result as using the media url.

@nisehime
Copy link

did not work same result as using the media url.

That's probably because the search query that gallery-dl builds doesn't work. (https://twitter.com/search?q=from:kyo_2b%20(filter:images%20OR%20filter:native_video%20OR%20card_name:animated_gif)&src=typed_query&f=live) (Though the top tab works).

Refer #2514 (comment), #2514 (comment)

The safest way is to use from: and max_id: only. Also, for the query above filter:links worked.

@maxman2103
Copy link
Author

@nisehime what is max_id ?

@nisehime
Copy link

A search parameter to show tweets that were prior the specified tweet id.

My comment was addressed to @mikf

@afterdelight
Copy link

does https://twitter.com/search?q=from:%user%+include:nativeretweets&f=live works to grab all retweets

@nisehime
Copy link

No, twitter doesn't return many retweets in the search.

@afterdelight
Copy link

then how to grab all the retweets of target account?

@nisehime
Copy link

There's no way. twitter.com/user returns last retweets. twitter.com/search?q=from:%user%+include:nativeretweets may return some retweets too, but not all of them.

@afterdelight
Copy link

maybe using different api end point?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants