mikf / gallery-dl

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

Gfycat authentication not working #4271

Closed 0x464e closed 1 year ago

0x464e commented 1 year ago

Hi,

As you probably know, Gfycat is sadly shutting down and everything will be deleted from there.

The Gfycat service is being discontinued. Please save or delete your Gfycat content by visiting https://www.gfycat.com and logging in to your account. After September 1, 2023, all Gfycat content and data will be deleted from gfycat.com

Would be nice if gallery-dl could be used to back up private videos from there. It works completely fine for public ones, but when I try to download everything from my profile (with authentication options) it still only gets the public ones.

I tried

gallery-dl -u "username" -p "pass" https://gfycat.com/@user
gallery-dl --cookies .\cookies.txt https://gfycat.com/@user
gallery-dl --cookies-from-browser firefox https://gfycat.com/@user

with no luck. They all just download the public videos from my profile.
Is authentication not supported for Gfycat, or is there a chance I'm doing something wrong?

I'm on version 1.25.7

0x464e commented 1 year ago

For anyone wondering, I used this as a workaround to download my stuff: First enter the list view mode on your profile and display 100 per page: image

Then you can run this in your browser's console:

[...document.querySelectorAll('.copy-input-text')].map(x => x.defaultValue).join(" ");

You'll get all the video urls in that page separated by a space.
Then you can just gallery-dl by copy pasting all the urls: gallery-dl url1 url2 url3 url4 url5 etc

This works because Gfycat videos are only private by visibility, you still have access as long as you know the url.

mikf commented 1 year ago

Duplicate of #3770.

It is now possible to login with username and password (https://github.com/mikf/gallery-dl/commit/7444fc125bacef8ce4db2e7e99aa80d3ee562f2a) and access your account's Gifs with gfycat.com/@me as URL (https://github.com/mikf/gallery-dl/commit/e9b9f751bfe9f743880fdadc7076d783b70f3266).

0x464e commented 1 year ago

Nice, and odd that I wasn't able to find that other issue when I searched before posting. Sorry for the duplicate.