mikf / gallery-dl

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

Searching for Exhentai links? #2014

Closed a84r7a3rga76fg closed 2 years ago

a84r7a3rga76fg commented 2 years ago

Noob question, I know, but please help me. Is it possible to use gallery-dl to look up https://exhentai.org/?f_cats=192&f_search=abcand write all of the results (the links) to a text file and also remember the results/links so that it won't write it again when gallery-dl is used again?

mikf commented 2 years ago

write all of the results (the links) to a text file

You can use -g to write the links to stdout and > to redirect that to a file:

$ gallery-dl -g "https://exhentai.org/?f_cats=192&f_search=abc" > links.txt

and also remember the results/links so that it won't write it again

You can tell it to remember downloaded files (--download-archive) and stop when it finds one it already downloaded (-T/--terminate). Combining this with -g from above is not possible.

a84r7a3rga76fg commented 2 years ago

Ouch, I was hoping there'd be a way to remember the results/links with gallery-dl. I'll close this then.