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

Downloading from a certain Twitter account automatically stops at a certain point #1396

Closed
MarqFJA87 opened this issue Mar 21, 2021 · 12 comments

Comments

@MarqFJA87
Copy link

MarqFJA87 commented Mar 21, 2021

I'm trying to download the media tweets of this account, but the app keeps stopping after about 420-something tweets (and this is after I specified in the config file to skip video tweets, since the user frequently tweets video reactions to replies and such). Confusingly, the app has no problem with downloading all applicable tweets from other accounts, such as this account's 600+ tweets (WARNING: plenty of NSFW material) or even this account's 1200+ tweets (AGAIN, FREQUENTLY HAS NSFW IMAGES).

For all I know, the problem isn't unique to this one account, but I've only started using this app with such "large" accounts last night.

@mikf
Copy link
Owner

mikf commented Apr 2, 2021

The /media timeline only returns the latest ~1000 tweets with media files, but it more or less depends on Twitter's mood how many it actually returns. Skipping, i.e. ignoring, video tweets doesn't help in this regard, in only makes gallery-dl return even less files.

Your best bet is to combine results from /media, advanced search, and maybe even the regular timeline. So for account USER, you'd initially download from

and use https://twitter.com/USER/media to keep up to date.

(*) you can add several other options to make this more precise and faster. For example filter:media, min_id:…, max_id:…, exclude:retweets, etc

@MarqFJA87
Copy link
Author

The extra options for advanced search should be separated by a specific special symbol (? or &), right?

@mikf
Copy link
Owner

mikf commented Apr 12, 2021

No, just with a space (or %20):
"https://twitter.com/search?q=from:USER filter:media exclude:retweets"

If in doubt, go to https://twitter.com/search-advanced, fill out the form, and copy the URL from that.

@MarqFJA87
Copy link
Author

I've been testing this method for the past few weeks, and it seems to be working well for the msot part. For several accounts, however, the "search?q=from:USER" part fails to return any results; I've tried manually searching for those accounts, and got no results as well, even though many such accounts have over 1000 tweets over the course of several months if not years. Anyone have any idea why this happens and whether this can be circumvented?

@mikf
Copy link
Owner

mikf commented May 7, 2021

To get Tweets from accounts with "sensitive" content, you must be logged in and have "Hide sensitive content" (and "Remove blocked and muted accounts"?) disabled in your search settings.
That's one of the reasons why gallery-dl doesn't use search results by default.

@MarqFJA87
Copy link
Author

MarqFJA87 commented May 7, 2021

Having my username and password in the config file cannot substitute for being logged in? And why would "Remove blocked and muted accounts" affect my search settings when I haven't blocked or muted any of the relevant accounts?

@MarqFJA87
Copy link
Author

Okay, I tried manually searching this NSFW-heavy Twitter account since the search result step in gallery-dl' once again failed, and even with "Hide sensitive content" and "Remove blocked and muted accounts" disabled, no search results are shown. I'm getting the feeling that there's some sort of "shadowban" going on.

@Hrxn
Copy link
Contributor

Hrxn commented Jun 27, 2021

The /media timeline only returns the latest ~1000 tweets with media files, but it more or less depends on Twitter's mood how many it actually returns. Skipping, i.e. ignoring, video tweets doesn't help in this regard, in only makes gallery-dl return even less files.

Your best bet is to combine results from /media, advanced search, and maybe even the regular timeline. So for account USER, you'd initially download from

and use https://twitter.com/USER/media to keep up to date.

(*) you can add several other options to make this more precise and faster. For example filter:media, min_id:…, max_id:…, exclude:retweets, etc

I sure wish GitHub had a feature to basically bookmark single comments like this from anywhere of the site.. 😄

@MarqFJA87

There are definitely more than enough shenanigans going on with Twitter, but there's a site where you can check the specific account you are using with gallery-dl for any search- or ghostbans or whatever:
https://shadowban.eu/

@mikf
Copy link
Owner

mikf commented Dec 3, 2022

This is fixed with 3346f58 and all the changes/improvements following that.

@mikf mikf closed this as completed Dec 3, 2022
@MarqFJA87
Copy link
Author

This is fixed with 3346f58 and all the changes/improvements following that.

Wait, so does that mean that I don't need to use Hrxn's method above, and instead I just need to plug the account's default URL for gallery-dl to do it all on its own?

@mikf
Copy link
Owner

mikf commented Dec 3, 2022

Kind of. Using the main profile URL now does /media (or /tweets) + /search and provides similar (and sometimes better) results as Twitter Media Downloader.

@MarqFJA87
Copy link
Author

Excellent. That cuts down on the manual work that I have to do if I have multiple Twitter accounts I want to download from. Thank you very much.

ClosedPort22 added a commit to ClosedPort22/gallery-dl that referenced this issue Jan 4, 2023
This includes:
- The automatic expansion of conversations (mikf#2712)
- How to retrieve age-restricted content from search results (mikf#1396)
ClosedPort22 added a commit to ClosedPort22/gallery-dl that referenced this issue Jan 5, 2023
This includes:
- The automatic expansion of conversations (mikf#2712)
- How to retrieve age-restricted content from search results (mikf#1396)
mikf added a commit that referenced this issue Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants