sinkaroid / jigoku

Bulk downloader for booru with evil intentions
MIT License
11 stars 3 forks source link
booru bulk-download danbooru downloader mass-downloader rule34
jigoku

Bulk downloader for booru imageboards with evil intentions

Jigoku is a CLI tool for downloading content around the imageboards, seamlessly integrates with popular website like danbooru, rule34, gelbooru, and many more. It's also modular, no matter what kind of links you have, what kind imageboard you want to download from, If still covered by the flow, this tools will adapt. πŸš€ Usage β€’ Testing Cases β€’ Documentation β€’ Report Issues

The Problem

jigoku

Opening fuckton of tabs, and download them one by one. Piece of crap
Welp, It's not tough actually if still same website, there is also tampermonkey hacks to mock them, but what if you want to get 'em from multiple websites?

The Solution

jigoku

No more tampermonkey hacks, no more opening a fuckton of tabs, no more spliting your note between danbooru, gelbooru, r34 or anything else. Just one command through single file, this tools will adapt.

Jigoku apply connection retry on failed, every your network changes or something else, It will keep waiting.

Features

Site support

Jigoku supports the following imageboards:

Prerequisites

NOTE: Python 3.7 or above

Installation

It's fairly simple to use jigoku

pip install jigoku

Usage

Just run without any arguments and interactive prompt will get you,

jigoku

$ jigoku

  1. First prompt will ask you to input your file

    • Input your file.txt
  2. Second prompt will ask you what kind of links you have

    • (1) multiple posts or galleries
    • (2) multiple pages
  3. Third prompt will ask you for image resolution

    • (1) original, means the original, big size
    • (2) sample, means smaller than original

Running tests

Is current state not covers enough? Feel free to add more test cases and submit a pull request.

Multiple posts test: workflows/jigoku_posts.yml
Multiple pages test: workflows/jigoku_pages.yml
Example file input: jigoku/tree/master/test

Phrases

This pattern used for validating posts or galleries

/posts/ danbooru based, &id= gelbooru based, ?id= gelbooru based, /show yandere based, /post/view/ paheal based

Otherwise, it will assign to pages

For example, If you confused between (1) and (2), check this out:

Limitations

You may notice that some part were strictly to "Original" resolution and "Sample" is no use, I'm pretty sure there are some limitations, for example old posts perhaps has different structures, but I haven't found any yet, current test cases has over 1000+ posts and took 20+ minutes, and it works fine.

Legal

This tool can be freely copied, modified, altered, distributed without any attribution whatsoever. However, if you feel like this tool deserves an attribution, mention it. It won't hurt anybody.

Licence: WTF.

Pronunciation

ja_JP β€’ jigoku β€” εœ°η„γ€γ˜γ”γ, meaning "hell". The other mean if you opening fuckton of rule34 tabs on browser, definitely hell and piece of crap