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 to X Rename Break #5597

Closed
Terryble2 opened this issue May 16, 2024 · 11 comments
Closed

Twitter to X Rename Break #5597

Terryble2 opened this issue May 16, 2024 · 11 comments

Comments

@Terryble2
Copy link

Due to Twitter enforcing the X rename gallery-dll no longer works to download files from Twitter. Both the cookie fetch and the username & password methods now fail.

@thatfuckingbird
Copy link
Contributor

Just tried a download with the latest gallery-dl release and it works for me (but I already had cookies set up, so I don't know if re-authenticating would also work).

@Terryble2
Copy link
Author

Just tried a download with the latest gallery-dl release and it works for me (but I already had cookies set up, so I don't know if re-authenticating would also work).

My issues started after re-authenticating so I believe that's where the issue lies. My belief is that the new cookie does not refer to itself as being for Twitter but rather for X and gallery-dl is searching for a cookie for Twitter. It may be possible to workaround this by extracting the cookie for X and renaming it to Twitter and saving that to a file for gallery-dl but to be honest I don't know how to do such a thing.

@a84r7a3rga76fg
Copy link

I've got the same issue. Guest mode only works.

@xxpc9
Copy link

xxpc9 commented May 17, 2024

I also hope that there is an added option for future updates from x.com will go to the Twitter folder already made, to have continuity

@AAndyProgram
Copy link

The same here. Twitter forced me to go to x.com after relogging and now nothing is downloading

mikf added a commit that referenced this issue May 17, 2024
@mikf
Copy link
Owner

mikf commented May 17, 2024

Should be fixed in 6276f5c.

Pre-built executables with this commit can be found at https://github.com/gdl-org/builds/releases, by the way.

@mikf mikf pinned this issue May 17, 2024
@AAndyProgram
Copy link

@mikf yes, it's fixed. Thank you!

@Terryble2
Copy link
Author

@mikf Fixed, many thanks! Might be worth noting that some people could theoretically have old Twitter cookies that will now stop working, those people will just need to re-authenticate on X.com.

@oncoremarco
Copy link

I'm afraid it seems that no matter what I do I'm still getting an error with twitter/x posts saying that the URL is unsupported. For example, using the url "https://x.com/AP" results in "[gallery-dl][error] Unsupported URL 'https://x.com/AP'"

My config settings are as follows:
"twitter": { "users": "https://x.com/{legacy[screen_name]}", "cookies": "x.com_cookies.txt", "text-tweets":true, "quoted":true, "retweets":true, "logout":true, "replies":true, "filename": "{author[name]}_{tweet_id}_{num}.{extension}", "directory":{ "quote_id != 0": ["twitter", "{user[name]}", "quote-retweets", "{quote_by}"], "retweet_id != 0": ["twitter", "{user[name]}", "retweets" ], "" : ["twitter", "{user[name]}" ] }, "postprocessors":[ {"name": "metadata", "event": "post", "filename": "twitter_{author[name]}_{tweet_id}_main.json"} ] },

@mikf
Copy link
Owner

mikf commented May 20, 2024

@oncoremarco You're using an outdated version then. Support for x.com URLs was added in v1.26.0 (2b88ad1).

@oncoremarco
Copy link

@oncoremarco You're using an outdated version then. Support for x.com URLs was added in v1.26.0 (2b88ad1).

You're right, that issue must have been something on my end. On my PC, for some reason, "gallery-dl" runs version 1.25 while "py -m gallery_dl" runs the updated version.

However, now that I'm using the correct package, I'm still unable to download from the site. Certain pages result in errors, and it seems to be related to those accounts that are "shadowbanned" or hidden from search. For instance, "https://x.com/AP" works fine, but an NSFW account such as "https://x.com/ThiccWithAQ" does not. It also seems to not take into account cookies saved from the new x.com URL linked in the config file. I've exported my cookies to a .txt file as normal and added them under the twitter header, and am still prompted to log in after a couple of files download. Just to be sure, I've duplicated my old "twitter" settings and renamed it "x", but still get the same results.

What is the correct method for logging into the new X site through gallery-dl, or for registering your login cookies with the program?

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

7 participants