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 `--cookie` option to store your cookie.
\r
42 *The default download folder will be the path where you run the command (CLI path).*
\r
45 Set your nhentai cookie against 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 (doujinshi ids split by line):
\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 --page=2
\r
75 Download your favorites with delay:
\r
77 .. code-block:: bash
\r
79 nhentai --favorites --download --delay 1
\r
86 -h, --help show this help message and exit
\r
87 -D, --download download doujinshi (for search results)
\r
88 -S, --show just show the doujinshi information
\r
91 --id=ID doujinshi ids set, e.g. 1,2,3
\r
92 -s KEYWORD, --search=KEYWORD
\r
93 search doujinshi by keyword
\r
94 --tag=TAG download doujinshi by tag
\r
95 -F, --favorites list or download your favorites.
\r
97 # Multi-page options
\r
98 --page=PAGE page number of search results
\r
99 --max-page=MAX_PAGE The max page when recursive download tagged doujinshi
\r
102 -o OUTPUT_DIR, --output=OUTPUT_DIR
\r
104 -t THREADS, --threads=THREADS
\r
105 thread count for downloading doujinshi
\r
106 -T TIMEOUT, --timeout=TIMEOUT
\r
107 timeout for downloading doujinshi
\r
108 -d DELAY, --delay=DELAY
\r
109 slow down between downloading every doujinshi
\r
110 -p PROXY, --proxy=PROXY
\r
111 uses a proxy, for example: http://127.0.0.1:1080
\r
112 -f FILE, --file=FILE read gallery IDs from file.
\r
113 --format=NAME_FORMAT format the saved folder name
\r
115 # Generating options
\r
116 --html generate a html viewer at current directory
\r
117 --no-html don't generate HTML after downloading
\r
118 -C, --cbz generate Comic Book CBZ File
\r
119 --rm-origin-dir remove downloaded doujinshi dir when generated CBZ
\r
123 --cookie=COOKIE set cookie of nhentai to bypass Google recaptcha
\r
129 If you want to use a mirror, you should set up a reverse proxy of `nhentai.net` and `i.nhentai.net`.
\r
134 i.h.loli.club -> i.nhentai.net
\r
135 h.loli.club -> nhentai.net
\r
137 Set `NHENTAI` env var to your nhentai mirror.
\r
139 .. code-block:: bash
\r
141 NHENTAI=http://h.loli.club nhentai --id 123456
\r
144 .. image:: ./images/search.png?raw=true
\r
147 .. image:: ./images/download.png?raw=true
\r
150 .. image:: ./images/viewer.png?raw=true
\r
157 .. image:: ./images/image.jpg?raw=true
\r
163 .. |travis| image:: https://travis-ci.org/RicterZ/nhentai.svg?branch=master
\r
164 :target: https://travis-ci.org/RicterZ/nhentai
\r
166 .. |pypi| image:: https://img.shields.io/pypi/dm/nhentai.svg
\r
167 :target: https://pypi.org/project/nhentai/
\r
169 .. |license| image:: https://img.shields.io/github/license/ricterz/nhentai.svg
\r
170 :target: https://github.com/RicterZ/nhentai/blob/master/LICENSE
\r