6 _ __ | | | | ___ _ __ | |_ __ _(_)
\r
7 | '_ \| |_| |/ _ \ '_ \| __/ _` | |
\r
8 | | | | _ | __/ | | | || (_| | |
\r
9 |_| |_|_| |_|\___|_| |_|\__\__,_|_|
\r
13 [![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
16 nHentai is a CLI tool for downloading doujinshi from [nhentai.net](http://nhentai.net).
\r
24 git clone https://github.com/RicterZ/nhentai
\r
26 python setup.py install
\r
28 =====================
\r
29 Installation (Gentoo)
\r
30 =====================
\r
35 sudo emerge net-misc/nhentai
\r
40 **IMPORTANT**: To bypass the nhentai frequency limit, you should use `--login` option to log into nhentai.net.
\r
42 *The default download folder will be the path where you run the command (CLI path).*
\r
44 Download specified doujinshi:
\r
46 .. code-block:: bash
\r
48 nhentai --id=123855,123866
\r
50 Download doujinshi with ids specified in a file:
\r
52 .. code-block:: bash
\r
54 nhentai --file=doujinshi.txt
\r
56 Search a keyword and download the first page:
\r
58 .. code-block:: bash
\r
60 nhentai --search="tomori" --page=1 --download
\r
62 Download your favourite doujinshi (login required):
\r
64 .. code-block:: bash
\r
66 nhentai --login "username:password" --download
\r
68 Download by tag name:
\r
70 .. code-block:: bash
\r
72 nhentai --tag lolicon --download
\r
78 + `-t, --thread`: Download threads, max: 10
\r
79 + `--output`:Output dir of saving doujinshi
\r
80 + `--tag`:Download by tag name
\r
81 + `--timeout`: Timeout of downloading each image
\r
82 + `--proxy`: Use proxy, example: http://127.0.0.1:8080/
\r
83 + `--login`: username:password pair of your nhentai account
\r
84 + `--nohtml`: Do not generate HTML
\r
85 + `--cbz`: Generate Comic Book CBZ File
\r
91 If you want to use a mirror, you should set up a reverse proxy of `nhentai.net` and `i.nhentai.net`.
\r
94 i.h.loli.club -> i.nhentai.net
\r
95 h.loli.club -> nhentai.net
\r
97 Set `NHENTAI` env var to your nhentai mirror.
\r
99 .. code-block:: bash
\r
101 NHENTAI=http://h.loli.club nhentai --id 123456
\r
103 ![](./images/search.png)
\r
104 ![](./images/download.png)
\r
105 ![](./images/viewer.png)
\r
108 ![](./images/image.jpg)
\r