-
-
Notifications
You must be signed in to change notification settings - Fork 951
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
Some Twitter accounts return [twitter][info] No results for #2354
Comments
With the latest dev version from master:
Your second example:
First example:
Works fine as well.. Authentication with an account is suggested here. When I open
|
Silly me I should've tried opening the specific account in a private tab first, still is there anyway gallery-dl can give a little more info other than "No results for" it really doesn't give the user much to go on? |
Fxtwitter is still able to anonymously download these images. https://github.com/robinuniverse/TwitFix This can be fixed in gallery-dl too |
The syndication API doesn't have the login gate, for now: Could be used as fallback maybe? |
I ran into this problem today, and I'm pretty sure I found out the cause of the problem after a little tinkering. It seems Twitter recently prohibited accounts without their birth dates from viewing explicit content (whether the user or Twitter marks content as explicit is beyond me). This also appears to extend to Nitter instances since Nitter just pulls the data from Twitter's servers, so although you can view hundreds of images on Nitter with no account at all, if you try to download them with gallery-dl then it doesn't work. Thus, if you wanted to use gallery-dl to download explicit content you would need to:
My config file info for Twitter looks like this:
And now I'm downloading the images that I wasn't able to just an hour ago. |
Downloading from nitter doesn't work because gallery-dl doesn't try to download from nitter, it just looks at the nitter URL and tries to download the same content from twitter. Nitter itself can get around the account requirement for now and so can show you the images (see my previous post). Sadly for people who refuse to give their phone number to twitter and make an account, there is no workaround yet for gallery-dl. |
It's sad that there's no workaround but for me this is more a matter of informing the user the reason no results are found is because the account is age restricted rather than a confusing generalised message such as "No results for". Opening up the account in a private tab where I am not logged in shows: Clicking "yes, view profile" then shows the following: What I am asking is that gallery-dl should inform the user that the profile and subsequently the tweets are age restricted and therefore cannot be downloaded, rather than just giving a generalised error message which is what caused me to create this issue in the first place. If I'd seen something like "This account is age restricted unable to continue" etc I'd have not thought gallery-dl had a bug that I needed to report. |
I thought at first the new age gate was to blame as well, but I can see the Tweets that return |
Yes. This is a defect. That's what this thread is for. |
I don't think there's a workaround here... |
I don't think so. Glancing over the description of this project, you can basically think of it as a middleman. So, based on their example ( |
Correct with regard to account requirements and account settings used on Twitter, but if I'm not mistaken - and the Twitter extractor does something unusual here - this config example does not work as implied. When supplying both account credentials (as username and password) and an authentication cookie, gallery-dl will simply pick one of them, but it can't make use of them both at the same time... |
So today I ran into an interesting phenomenon: on some of the Tweets that returned this message in gallery-dl the download works after a few retries, which strengthens my suspicion that the age gate is not the only factor here. |
There is now a warning when gallery-dl can't access age-restricted tweets.(64bbc79) I'll try to make use of the syndication endpoints from #2354 (comment) to lookup any age-restricted tweets, since that seems to be the only way that still works. (where did you find these?) The official API (used by TwitFix #2354 (comment)), just returns an error for age-restricted Tweets: {
"errors": [
{
"code": 34,
"message": "Sorry, that page does not exist."
}
]
}
Nitter doesn't do anything special in this regard (I looked at its source code) and several instances show "No items found". Instances located in France, India, or potentially other countries where Twitter hasn't applied these restrictions yet still work (https://nitter.42l.fr/mightbecursed), but the main instance located in Germany does not (https://nitter.net/mightbecursed), so maybe using a French VPN or proxy might work. And if nothing else helps, there is always the option of buying a burner phone and registering a new account with that.
Yep, it will only use the auth-token cookie in that case and ignore username and password. |
Hydrus uses these for a long time now (out of necessity, since it's not advanced enough to use the graphql-based main API) and some users reported that it gets around the block.
I just tried some other countries that my VPN provider has servers in, but it's all blocked: Belgium, Germany, Netherlands, Romania, Switzerland, US, Canada, New Zealand, Ukraine, Japan, Brazil. They don't have servers in either France or India so couldn't check those, but I'm not sure it's location based (or if it is, it's only a few countries).
Sadly you can't buy burner phones anymore in many EU countries, since all mobile providers require ID to use the network by law. |
were you able to make any progress on this? if not, would it be possible for you to support niitter.42l.fr urls instead? |
@jadedgnome That is being tracked at #2415 |
to fetch age-restricted content using Twitter's syndication API
There is now support for grabbing "age-restricted" tweets via syndication API without login (1171911). At the moment this feature is disabled by default, mostly because sometimes the API returns a 404 error for several minutes until it gives an actual result, and it also has to query each Tweet separately. This is most likely going to enabled by default in the next release, but for now it needs the |
If it has such drawbacks, surely this won't be used when signed in, right? |
If you are signed in, those tweets will be visible to gallery-dl so it won't even consider using the fallback. |
thanks a lot! edit: there seems to be some .m3u8 files saved as well as .mp4 files. |
- ignore .m3u8 manifests - always select largest format
By the way, you can get a Twitter account without phone number by reaching out to their support after your account gets locked. |
Seems to happen if I reference a single tweet or the whole account not sure if there are other accounts affected this is just the first one I found.
Failing account:
Working account:
Version:
The text was updated successfully, but these errors were encountered: