mikf / gallery-dl

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

[Question] About Furaffinity range & --filter with print() #6123

Closed someonenameguy closed 2 months ago

someonenameguy commented 2 months ago

Furaffinity post ID instead of --Range

For FA is it possible to use the id instead of a range? Because I have an old string of posts I want to download, I have the post id but have no idea how deep it is in the author's gallery. Their latest post have ids in the 55000000, while the old post has an id of 23000000.

About the --filter and print()

I know I can do gallery-dl URL --filter "print(filename)" to print but I like to do --filter "'zip' in extension" at the same time. I tried gallery-dl URL --filter "'zip' in extension: print(filename)" that didn't work. Currently I do gallery-dl URL -G then gallery-dl URL --filter "print(filename + '.' extension)". Then copy both into google sheet, then copy both into regex101 to replace the \t.

mikf commented 2 months ago

Furaffinity post ID instead of --Range

I would transform your ID list to full post URLs and feed them to gallery-dl with --input-file.

https://furaffinity.net/view/12345678/
https://furaffinity.net/view/12345679/
...

About the --filter and print()

# print only 'zip' filenames; don't download anything
--filter "'zip' in extension and print(filename)"

# print all filenames; download only 'zip' files
--filter "print(filename) or 'zip' in extension"
someonenameguy commented 2 months ago

About the --filter and print()

# print only 'zip' filenames; don't download anything
--filter "'zip' in extension and print(filename)"

# print all filenames; download only 'zip' files
--filter "print(filename) or 'zip' in extension"

I see. Thanks.

Furaffinity post ID instead of --Range

I would transform your ID list to full post URLs and feed them to gallery-dl with --input-file.

https://furaffinity.net/view/12345678/
https://furaffinity.net/view/12345679/
...

I was trying to download in parallel, by running multiple gallery-dl with different --range and was wondering if there was a way to know how many post they had.

Now I remembered FA actually gives the number of submissions. Plus, I could have just run gallery-dl URL --no-download and just counted how many lines there were, oops.