mikf / gallery-dl

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

Save extracted link list to file #4628

Closed Eliont closed 1 year ago

Eliont commented 1 year ago

Hello and good time of day.

How to dump extracted links list to text file?

When using site that need oauth i can not simply redirect output to file because i need autorization link.

Hrxn commented 1 year ago

What do you mean?

What kind of authorization link? You don't use any authorization link for normal operation of gallery-dl, so, yes, you can redirect output?

Eliont commented 1 year ago

What do you mean?

What kind of authorization link? You don't use any authorization link for normal operation of gallery-dl, so, yes, you can redirect output?

gallery-dl oauth:pixiv "pixiv link" - for example

kattjevfel commented 1 year ago

That's a one time operation though, you don't need to run oauth every time...

Eliont commented 1 year ago

That's a one time operation though, you don't need to run oauth every time...

One per session, but oauth request not displayed in console too when output redirected, download can not be started, so all things completely not working.

Hrxn commented 1 year ago

Then maybe use this to get the token: https://github.com/eggplants/get-pixivpy-token

And then simply set "refresh-token" on the command-line.

Hrxn commented 1 year ago

But you definitely don't need to run OAuth authorization just for downloading.

Eliont commented 1 year ago

Ok, thanks for workaround, but sooo... there are no way currently to just grab links to txt file seems.

Hrxn commented 1 year ago

Yes, of course. gallery-dl -g <URL> (or gallery-dl -G <URL>) and then simply redirect to a file.