Package: nhentai-downloader
Nhentai downloaderPython command line program to retrieve information from and download nhentai galleries.This project idea was inspired byRicterZhen nhentai doujinshi downloaderSupport for output the found doujinshi in json or a id listInstalationWith pippip install nhentai-downloaderWith setup.pygit clone https://gitlab.com/DukeValentine/nhentai-downloader.git
cd nhentai-downloader
python setup.py installBuilding the windows binaryThe available windows binary is built with pyinstaller, to build it yourself, execute the following in windows or wine:pyinstaller ./nhentai_downloader/nhentai.py -F -p ./nhentai_downloader --hidden-import=requests --hidden-import=bs4You must have requests and beaultifulSoup4 already installed prior to building the binaryAvailable optionsTo see all command line options for nhentai-downloader, run it with the --help argument:nhentai-downloader --helpThe expected output is:optional arguments:
  -h, --help            show this help message and exit

Authentication:
  -l LOGIN, --login LOGIN
  -p PASSWORD, --password PASSWORD

Debug:
  -V, --verbose         Print aditional debug information

File options:
  --dir [DIR], -D [DIR]
                        Directory for saved files, defaults to ./nhentai/
  -o OUTPUT_FILENAME, --output OUTPUT_FILENAME
                        Output filename, empty by default
  -i INPUT_FILENAME, --input INPUT_FILENAME
                        Extract doujinshi from input file
  --json                Switch between id list and json outputs

Search options:
  --search              Sets whether it will get doujinshi from favorites or
                        site-wide search
  --id [ID [ID ...]]    Fetch doujinshi from supplied ids
  -t [TAGS [TAGS ...]], --tags [TAGS [TAGS ...]]
                        Narrow doujinshi down by tags
  --page INITIAL_PAGE   Initial page
  --max-page LAST_PAGE  Last page

Download options:
  --download            Download found doujinshi
  --overwrite-disable   Overwrite already downloaded images
  --threads THREADS     How many download threads the program will useUsageFor more information on usage, please read the full list of optionsOnly fetch metadata (don't download)Do not supply the --download argument. The program by default only fetch metadataDownload doujinshi by idsnhentai-downloader --download --id ID1 ID2 ID3 ID4Search and download doujinshinhentai-downloader --search --download -t TAG1 TAG2 TAG3Download doujinshi from your favoritesnhentai-downloader --login USERNAME --password PASSWORD --downloadDownload in specified direcorynhentai-downloader --dir /path/to/download [Remaining arguments]The dir argument is also used to determine where the output file will be writtenDo not overwrite already downloaded filesnhentai-downloader --overwrite-disable [Remaining arguments]Restrict initial and max page for fetchingnhentai-downloader --search TAG1 TAG2 --page 2 --max-page 4Have the program output results to a fileTo enable output, the output filename must be given. If the format is not specified, the program will assume a id listFor json:nhentai-downloader --json --output doujinshi.json [Remaining options]For id listnhentai-downloader --output list.txt [Remaining options]