-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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] [X] "AuthorizationError: user's Tweets are protected" even when using browser cookies #5957
Comments
I cannot reproduce this issue with a protected account I follow. Everything just works. Can you double check in your Firefox that you can view her tweets, /media page fine, and you're indeed using the profile folder |
Yes, I can view the user's tweets and /media page normally using Firefox.
I can also download from private Instagram profiles with no issues using Firefox browser cookies. |
Thanks. Then I have no clue why it doesn't work. Maybe try the following:
At this point I don't know which part is causing the problem so we would like to control the variables first. |
I have the same problem for 3 days now. (v1.27.2) |
@aonecho Are you also using Firefox? I can't reproduce it myself even on Firefox, but that would help us narrowing down. Like maybe it's related to some of its privacy features (as well as the use of Containers). It also helps if you guys can create a new profile for whatever browser you're using and try with that ( |
@fireattack I created a new profile and verified it. As for I hope this will be helpful for you. Translated with www.DeepL.com/Translator (free version) |
@aonecho Thanks! |
JFYI, Maybe there is a difference between this and "default" container, whatever that means,. |
What I call the default container is essentially the one you're using when you first open Firefox—it's where your browser cookies are stored if you're not using multiple containers. I guess it can also be called the default profile. I've always used Firefox with containers, and Twitter cookies have worked fine for me in the past. This is actually the first time I've run into this issue with gallery-dl. Usually, when you don't specify a container, gallery-dl uses the cookies from the default profile/container. So this behavior is pretty unexpected, based on my experience.
It's possible there's a bug specifically related to container usage. |
Passing Please try to run the command with It should both say "[cookies][info] Extracted xxxx cookies from Firefox" with the exact same number xxxx. If one works but the other does not, please paste the full log for both. |
Maybe the problem is that |
Ah my bad, I read it too quickly. I didn't realise one is |
Then it probably is the reason -- if the user have multiple accounts in different containers, they overwrite each other. I think we should set For the same reason we don't by default read all the profiles the users' browser(s) have, basically. |
Sounds like a really good idea.
In my defense, extracting all cookies across all containers is also yt-dlp's default behavior. |
…5957) add support for 'all' to extract all cookies regardless of container
Done: 2d55521 |
That clears things up! So gallery-dl was mixing cookies from all the containers. I also noticed you've made 'none' the default option now. That's a helpful change! |
Description
I'm encountering difficulties while attempting to download media from a protected X (formerly Twitter) account. Despite being an approved follower, gallery-dl is unable to access the content even if it's using my logged-in browser cookies. I've confirmed my follower status by successfully viewing the user's media through Firefox.
Steps to Reproduce
Note: The actual X username has been replaced with "user" for privacy.
Observed Behavior
The command produces the following output:
Note: The actual X username has been replaced with "user" for privacy.
Expected Behavior
Given my approved follower status, gallery-dl should successfully download the media from the protected account.
The text was updated successfully, but these errors were encountered: