Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skipping half images from a thread. #918

Closed
junomarian opened this issue Jul 30, 2020 · 2 comments
Closed

Skipping half images from a thread. #918

junomarian opened this issue Jul 30, 2020 · 2 comments

Comments

@junomarian
Copy link

junomarian commented Jul 30, 2020

Is it possible to download only half/alternative images from a forum thread?
Site Vipergirls Page have 200 pics . I just want to download half of them 1,3,5 or 2,4,6 odd or even
doesnt matter. Is it possible with gallery-dl r:

@mikf
Copy link
Owner

mikf commented Aug 3, 2020

Not exactly, but you can make it somewhat work.

Either you write all potential URLs from a thread to file, filter them somehow, and then use said file as input for gallery-dl

$ gallery-dl -g r:https://vipergirls.to/threads/... > urls.txt
# remove unwanted URLs from 'urls.txt'
$ gallery-dl -i urls.txt

or you use --chapter-range with a long list of indices:

$ gallery-dl --range 1,3,5,7,9,11,13,...,201,203,205 r:https://vipergirls.to/threads/...

mikf added a commit that referenced this issue Jan 1, 2023
e.g.
- '1:101'   or ':101' or ':101:'  for files 1 to 100
- '1::2'    or '::2'              for every second file
- '1:101:5' or ':101:5'           for files 1, 6, 11, ..., 91, 96

(the second argument specifies the first index NOT included)
@mikf
Copy link
Owner

mikf commented Jan 5, 2023

Downloading only every 2nd or 3rd file is now possible with the changes from d651d45:
--range 1::2, --range 2::3, etc.

@mikf mikf closed this as completed Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants