mikf / gallery-dl

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

[kemono.party] downloading from a range of pages #1674

Closed Cl1ff closed 2 years ago

Cl1ff commented 3 years ago

Hey, is there a way to download from a range of pages on sites such as kemono.party?

Range would work if each post on a user's page had a single image, but a majority of the time each post has multiple images. Trying to mass download a portion of a user would require having to go through each post and adding how many images there would be total.

I've tried using chapter-range but it does not seem to have any implementation with kemono.party as everything gets downloaded regardless of what chapter-range is put.

mikf commented 3 years ago

There's no generic way to specify a range of posts, i.e. no --post-range, and it's also not possible to implement it with how things work internally. It should, however, be rather easy to implement a max-posts option like it has been done for Pixiv to limit the number of posts, and to parse the o query parameter from URLs like https://kemono.party/<SERVICE>/user/<ID>?o=25 to use as a starting point. Would that be OK?

Cl1ff commented 3 years ago

That would work perfectly as the main reason I needed such a feature is to only download newer posts from a user I haven't downloaded from yet.

mikf commented 2 years ago

Done. -o max-posts=25 to stop after 25 posts, and ?o=25 at the end of a URL to start after post number 25