4 _ __ | | | | ___ _ __ | |_ __ _(_)
\r
5 | '_ \| |_| |/ _ \ '_ \| __/ _` | |
\r
6 | | | | _ | __/ | | | || (_| | |
\r
7 |_| |_|_| |_|\___|_| |_|\__\__,_|_|
\r
10 [![Build Status](https://travis-ci.org/RicterZ/nhentai.svg?branch=master)](https://travis-ci.org/RicterZ/nhentai) ![nhentai PyPI Downloads](https://img.shields.io/pypi/dm/nhentai.svg) [![license](https://img.shields.io/cocoapods/l/AFNetworking.svg)](https://github.com/RicterZ/nhentai/blob/master/LICENSE)
\r
13 nHentai is a CLI tool for downloading doujinshi from [nhentai.net](http://nhentai.net).
\r
17 git clone https://github.com/RicterZ/nhentai
\r
19 python setup.py install
\r
21 ### Installation (Gentoo)
\r
24 sudo emerge net-misc/nhentai
\r
27 **IMPORTANT**: To bypass the nhentai frequency limit, you should use `--login` option to log into nhentai.net.
\r
29 *The default download folder will be the path where you run the command (CLI path).*
\r
31 Download specified doujinshi:
\r
33 nhentai --id=123855,123866
\r
36 Download doujinshi with ids specified in a file:
\r
38 nhentai --file=doujinshi.txt
\r
41 Search a keyword and download the first page:
\r
43 nhentai --search="tomori" --page=1 --download
\r
46 Download your favourite doujinshi (login required):
\r
48 nhentai --login "username:password" --download
\r
51 Download by tag name:
\r
53 nhentai --tag lolicon --download
\r
58 + `-t, --thread`: Download threads, max: 10
\r
59 + `--output`:Output dir of saving doujinshi
\r
60 + `--tag`:Download by tag name
\r
61 + `--timeout`: Timeout of downloading each image
\r
62 + `--proxy`: Use proxy, example: http://127.0.0.1:8080/
\r
63 + `--login`: username:password pair of your nhentai account
\r
64 + `--nohtml`: Do not generate HTML
\r
65 + `--cbz`: Generate Comic Book CBZ File
\r
68 If you want to use a mirror, you should set up a reverse proxy of `nhentai.net` and `i.nhentai.net`.
\r
71 i.h.loli.club -> i.nhentai.net
\r
72 h.loli.club -> nhentai.net
\r
74 Set `NHENTAI` env var to your nhentai mirror.
\r
76 NHENTAI=http://h.loli.club nhentai --id 123456
\r
79 ![](./images/search.png)
\r
80 ![](./images/download.png)
\r
81 ![](./images/viewer.png)
\r
84 ![](./images/image.jpg)
\r