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

Download from Imgur #6990

Closed
Jay123210599 opened this issue Feb 13, 2025 · 8 comments
Closed

Download from Imgur #6990

Jay123210599 opened this issue Feb 13, 2025 · 8 comments

Comments

@Jay123210599
Copy link

Jay123210599 commented Feb 13, 2025

How do I download images from albums in Imgur? Also, I want the name of the images to be their descriptions, like this: https://imgur.com/QonsUG1

How do I do that?

@mikf
Copy link
Owner

mikf commented Feb 13, 2025

You use this URL as argument for gallery-dl.

$ gallery-dl https://imgur.com/i5pFQw3
./imgur/imgur_i5pFQw3.png

I want the name of the images to be their descriptions

This image doesn't have a description, but it would be --filename "{description|id}.{extension}"

@Jay123210599
Copy link
Author

This image doesn't have a description, but it would be --filename "{description|id}.{extension}"

I mean the words at the bottom of each image, like this: https://imgur.com/a/amagi-brilliant-park-japanese-credits-XEpCe9t

@mikf
Copy link
Owner

mikf commented Feb 13, 2025

Did you even try --filename "{description|id}.{extension}" ?

$ gallery-dl --filename "{description|id}.{extension}" https://imgur.com/a/amagi-brilliant-park-japanese-credits-XEpCe9t
./imgur/XEpCe9t - Amagi Brilliant Park Japanese Credits/Episode 1.jpg
./imgur/XEpCe9t - Amagi Brilliant Park Japanese Credits/Episode 2.jpg
./imgur/XEpCe9t - Amagi Brilliant Park Japanese Credits/Episode 3.jpg
...

https://imgur.com/i5pFQw3 still doesn't have a description.

@Jay123210599
Copy link
Author

Well, it worked the way I wanted it to. Now I want to download every single image from my Imgur account. How do I do that? I should note that all of my posts are hidden and not public.

@mikf
Copy link
Owner

mikf commented Feb 14, 2025

all of my posts are hidden

Downloading hidden imgur posts is not supported yet.

@mikf
Copy link
Owner

mikf commented Feb 14, 2025

With 7ae09c6, you can access your account's (hidden) posts by using https://imgur.com/user/me as URL (requires cookies):

gallery-dl --cookies cookies-imgur-com.txt https://imgur.com/user/me

@mikf mikf closed this as completed Feb 14, 2025
@Jay123210599
Copy link
Author

With 7ae09c6, you can access your account's (hidden) posts by using https://imgur.com/user/me as URL (requires cookies):

gallery-dl --cookies cookies-imgur-com.txt https://imgur.com/user/me

What page on Imgur do I get the cookies from? And can I use the latest version of gallery-dl?

@mikf
Copy link
Owner

mikf commented Feb 15, 2025

What page on Imgur do I get the cookies from?

All of them. Just login and export cookies.
Or use --cookies-from-browser.
Or get your accesstoken cookie value with browser dev tools and pass it with -o cookies.accesstoken="VALUEHERE" (ignore this if you don't know how)

And can I use the latest version of gallery-dl?

For pip installations:

python3 -m pip install -U --force-reinstall --no-deps https://github.com/mikf/gallery-dl/archive/master.tar.gz

For standalone executables:

gallery-dl --update-to dev

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

2 participants