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://pypistats.com/badge/nhentai.svg)
\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
24 sudo emerge net-misc/nhentai
\r
27 Download specified doujinshi:
\r
29 nhentai --id=123855,123866
\r
32 Search a keyword and download the first page:
\r
34 nhentai --search="tomori" --page=1 --download
\r
37 Download your favourite doujinshi (login required):
\r
39 nhentai --login "username:password" --download
\r
42 Download by tag name:
\r
44 nhentai --tag lolicon --download
\r
49 + `-t, --thread`: Download threads, max: 10
\r
50 + `--output`:Output dir of saving doujinshi
\r
51 + `--tag`:Download by tag name
\r
52 + `--timeout`: Timeout of downloading each image
\r
53 + `--proxy`: Use proxy, example: http://127.0.0.1:8080/
\r
54 + `--login`: username:password pair of your nhentai account
\r
55 + `--nohtml`: Do not generate HTML
\r
56 + `--cbz`: Generate Comic Book CBZ File
\r
59 If you want to use a mirror, you should set up a reverse proxy of `nhentai.net` and `i.nhentai.net`.
\r
62 i.h.loli.club -> i.nhentai.net
\r
63 h.loli.club -> nhentai.net
\r
65 Set `NHENTAI` env var to your nhentai mirror.
\r
67 NHENTAI=http://h.loli.club nhentai --id 123456
\r
70 ![](./images/search.png)
\r
71 ![](./images/download.png)
\r
72 ![](./images/viewer.png)
\r
78 ![](./images/image.jpg)
\r