mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
10.66k stars 880 forks source link

Unsupported URL error when logging in #5756

Closed Someguy1519 closed 6 days ago

Someguy1519 commented 1 week ago

$ gallery-dl -u "username" -p "password" "https://x.com/" gallery-dl -o "username=username" -o "password=password" "https://x.com/" [gallery-dl][error] Unsupported URL 'https://x.com/' [gallery-dl][error] Unsupported URL 'https://x.com/'

Can't login to Twitter/X keep getting "Unsupported URL" error

kattjevfel commented 1 week ago

You have to actually input a valid URL, like a post or user etc.

Someguy1519 commented 1 week ago

You have to actually input a valid URL, like a post or user etc.

Now I'm getting this error when logging in. I'm pretty sure I entered everything correctly.

[twitter][error] AuthenticationError: "Sorry, we could not find your account."

mikf commented 1 week ago

That's the error you get when logging in with a name not recognized by Twitter, so you most likely entered the wrong name.

$ gallery-dl -u invalid~username x.com/potus
[twitter][info] Logging in as invalid~username
[twitter][error] AuthenticationError: "Sorry, we could not find your account."
Someguy1519 commented 1 week ago

That's the error you get when logging in with a name not recognized by Twitter, so you most likely entered the wrong name.

$ gallery-dl -u invalid~username x.com/potus
[twitter][info] Logging in as invalid~username
[twitter][error] AuthenticationError: "Sorry, we could not find your account."

I entered it correctly though. It still gives me the error.

mikf commented 1 week ago

Then try using cookies directly.


Trying to log into an existing account yields this, by the way:

$ gallery-dl -u john123 x.com/potus
[twitter][info] Logging in as john123
Alternate Identifier (username, email, phone number): ^C
KeyboardInterrupt
Someguy1519 commented 1 week ago

Then try using cookies directly.

Trying to log into an existing account yields this, by the way:

$ gallery-dl -u john123 x.com/potus
[twitter][info] Logging in as john123
Alternate Identifier (username, email, phone number): ^C
KeyboardInterrupt

I was able to login and download the images I want. Only problem is I can't find the downloaded images anywhere. Where would they be If I downloaded them using Termux on Android?

mikf commented 1 week ago

In your current working directory. Run pwd and it should print its full path.

Someguy1519 commented 1 week ago

In your current working directory. Run pwd and it should print its full path.

Thanks for the help. By the way would you be able to add support for Twitter gifs? Gallery-dl downloads them as mp4 files and they don't work at all.

kattjevfel commented 1 week ago

You get a mp4 because that's what twitter offers, even if it says "gif" on the page it's an outright lie. It only means it was a gif when they uploaded before twitter converted it.

Therefor, the only way to get a gif is for you to convert it back, losing even more quality.