4 _ __ | | | | ___ _ __ | |_ __ _(_)
5 | '_ \| |_| |/ _ \ '_ \| __/ _` | |
6 | | | | _ | __/ | | | || (_| | |
7 |_| |_|_| |_|\___|_| |_|\__\__,_|_|
10 [![Build Status](https://travis-ci.org/RicterZ/nhentai.svg?branch=master)](https://travis-ci.org/RicterZ/nhentai)
12 🎉🎉 nhentai 现在支持 Windows 啦!
14 由于 [http://nhentai.net](http://nhentai.net) 下载下来的种子速度很慢,而且官方也提供在线观看本子的功能,所以可以利用本脚本下载本子。
18 git clone https://github.com/RicterZ/nhentai
20 python setup.py install
25 sudo emerge net-misc/nhentai
30 nhentai --id=123855,123866
35 nhentai --search="tomori" --page=1 --download
40 nhentai --login "username:password" --download
45 `-t, --thread`:指定下载的线程数,最多为 10 线程。
46 `--path`:指定下载文件的输出路径,默认为当前目录。
47 `--timeout`:指定下载图片的超时时间,默认为 30 秒。
48 `--proxy`:指定下载的代理,例如: http://127.0.0.1:8080/
49 `--login`:nhentai 账号的“用户名:密码”组合
50 `--nohtml`:nhentai Don't generate HTML
51 `--cbz`:nhentai Generate Comic Book CBZ file
54 如果想用自建镜像下载 nhentai 的本子,需要搭建 nhentai.net 和 i.nhentai.net 的反向代理。
55 例如用 h.loli.club 来做反向代理的话,需要 h.loli.club 反代 nhentai.net,i.h.loli.club 反带 i.nhentai.net。
59 NHENTAI=http://h.loli.club nhentai --id 123456
62 ![](./images/search.png)
63 ![](./images/download.png)
64 ![](./images/viewer.png)
70 ![](./images/image.jpg)