mikf / gallery-dl

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

[Exhentai] How to get URLs by certain uploaders while using chapter-range? #5012

Open a84r7a3rga76fg opened 11 months ago

a84r7a3rga76fg commented 11 months ago

I'm using this to get the latest 40 galleries. Is there any way to filter out uploaders whose names aren't ASD and ZXC?

gallery-dl -g --chapter-range 1-40 https://exhentai.org/? > 'urls.txt'

mikf commented 11 months ago

Theoretically with --chapter-filter, but this has only gallery_id and gallery_token as available metadata.

Couldn't you add negative tags to your search query to exclude uploaders? /?f_search=-uploader%3AUPLOADER_NAME

There's also an Excluded Uploaders field in the exh settings menu.

a84r7a3rga76fg commented 11 months ago

Could uploader, title, title_jpn and tags be added to --chapter-filter in a future update? I can't use the website's excluded uploaders or tags because of their limitation. Right now I'm saving the JSON file of every gallery which does extra requests and I get banned faster from it.

mikf commented 11 months ago

We are yet again at a point where writing a custom script using exh's API would be the best solution, since it can process up to 25 entries in a single request.

a84r7a3rga76fg commented 11 months ago

I'm checking for the latest uploaded galleries from certain uploaders every minute and I've never seen them upload 25 galleries during cooldown.