7 _ __ | | | | ___ _ __ | |_ __ _(_)
\r
8 | '_ \| |_| |/ _ \ '_ \| __/ _` | |
\r
9 | | | | _ | __/ | | | || (_| | |
\r
10 |_| |_|_| |_|\___|_| |_|\__\__,_|_|
\r
19 nHentai is a CLI tool for downloading doujinshi from <http://nhentai.net>
\r
26 git clone https://github.com/RicterZ/nhentai
\r
28 python setup.py install
\r
30 =====================
\r
31 Installation (Gentoo)
\r
32 =====================
\r
36 sudo emerge net-misc/nhentai
\r
41 **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
45 Set your nhentai cookie aginest captcha:
\r
47 .. code-block:: bash
\r
49 nhentai --cookie 'YOUR COOKIE FROM nhentai.net'
\r
51 Download specified doujinshi:
\r
53 .. code-block:: bash
\r
55 nhentai --id=123855,123866
\r
57 Download doujinshi with ids specified in a file:
\r
59 .. code-block:: bash
\r
61 nhentai --file=doujinshi.txt
\r
63 Search a keyword and download the first page:
\r
65 .. code-block:: bash
\r
67 nhentai --search="tomori" --page=1 --download
\r
69 Download by tag name:
\r
71 .. code-block:: bash
\r
73 nhentai --tag lolicon --download
\r
75 Download your favorites:
\r
77 .. code-block:: bash
\r
79 nhentai --favorites --download
\r
84 + `-t, --thread`: Download threads, max: 10
\r
85 + `--output`:Output dir of saving doujinshi
\r
86 + `--tag`:Download by tag name
\r
87 + `--timeout`: Timeout of downloading each image
\r
88 + `--proxy`: Use proxy, example: http://127.0.0.1:8080/
\r
89 + `--login`: username:password pair of your nhentai account
\r
90 + `--nohtml`: Do not generate HTML
\r
91 + `--cbz`: Generate Comic Book CBZ File
\r
96 If you want to use a mirror, you should set up a reverse proxy of `nhentai.net` and `i.nhentai.net`.
\r
101 i.h.loli.club -> i.nhentai.net
\r
102 h.loli.club -> nhentai.net
\r
104 Set `NHENTAI` env var to your nhentai mirror.
\r
106 .. code-block:: bash
\r
108 NHENTAI=http://h.loli.club nhentai --id 123456
\r
111 .. image:: ./images/search.png?raw=true
\r
114 .. image:: ./images/download.png?raw=true
\r
117 .. image:: ./images/viewer.png?raw=true
\r
124 .. image:: ./images/image.jpg?raw=true
\r
130 .. |travis| image:: https://travis-ci.org/RicterZ/nhentai.svg?branch=master
\r
131 :target: https://travis-ci.org/RicterZ/nhentai
\r
133 .. |pypi| image:: https://img.shields.io/pypi/dm/nhentai.svg
\r
134 :target: https://pypi.org/project/nhentai/
\r
136 .. |license| image:: https://img.shields.io/github/license/ricterz/nhentai.svg
\r
137 :target: https://github.com/RicterZ/nhentai/blob/master/LICENSE
\r