mirror of
https://github.com/RicterZ/nhentai.git
synced 2025-04-20 11:01:17 +02:00
Update README.md
This commit is contained in:
parent
dda849b770
commit
7f30c84eff
34
README.md
34
README.md
@ -7,11 +7,10 @@ nhentai
|
|||||||
|_| |_|_| |_|\___|_| |_|\__\__,_|_|
|
|_| |_|_| |_|\___|_| |_|\__\__,_|_|
|
||||||
|
|
||||||
あなたも変態。 いいね?
|
あなたも変態。 いいね?
|
||||||
[](https://travis-ci.org/RicterZ/nhentai)
|
](https://travis-ci.org/RicterZ/nhentai) 
|
||||||
|
|
||||||
🎉🎉 nhentai 现在支持 Windows 啦!
|
|
||||||
|
|
||||||
由于 [http://nhentai.net](http://nhentai.net) 下载下来的种子速度很慢,而且官方也提供在线观看本子的功能,所以可以利用本脚本下载本子。
|
Nhentai is a CLI tool for downloading doujinshi from nhentai.net.
|
||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
|
|
||||||
@ -25,36 +24,39 @@ nhentai
|
|||||||
sudo emerge net-misc/nhentai
|
sudo emerge net-misc/nhentai
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
下载指定 id 列表的本子:
|
Download specified doujinshi:
|
||||||
```bash
|
```bash
|
||||||
nhentai --id=123855,123866
|
nhentai --id=123855,123866
|
||||||
```
|
```
|
||||||
|
|
||||||
下载某关键词第一页的本子:
|
Search a keyword and download the first page:
|
||||||
```bash
|
```bash
|
||||||
nhentai --search="tomori" --page=1 --download
|
nhentai --search="tomori" --page=1 --download
|
||||||
```
|
```
|
||||||
|
|
||||||
下载用户 favorites 内容:
|
Download your favourite doujinshi (login required):
|
||||||
```bash
|
```bash
|
||||||
nhentai --login "username:password" --download
|
nhentai --login "username:password" --download
|
||||||
```
|
```
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
`-t, --thread`:指定下载的线程数,最多为 10 线程。
|
`-t, --thread`: Download threads, max: 10
|
||||||
`--path`:指定下载文件的输出路径,默认为当前目录。
|
`--output`:Output dir of saving doujinshi
|
||||||
`--timeout`:指定下载图片的超时时间,默认为 30 秒。
|
`--timeout`: Timeout of downloading each image.
|
||||||
`--proxy`:指定下载的代理,例如: http://127.0.0.1:8080/
|
`--proxy`: Use proxy, example: http://127.0.0.1:8080/
|
||||||
`--login`:nhentai 账号的“用户名:密码”组合
|
`--login`: username:password pair of your nhentai account
|
||||||
`--nohtml`:nhentai Don't generate HTML
|
`--nohtml`: Do not generate HTML
|
||||||
`--cbz`:nhentai Generate Comic Book CBZ file
|
`--cbz`: Generate Comic Book CBZ File
|
||||||
|
|
||||||
### nHentai Mirror
|
### nHentai Mirror
|
||||||
如果想用自建镜像下载 nhentai 的本子,需要搭建 nhentai.net 和 i.nhentai.net 的反向代理。
|
If you want to use a mirror, you should set up a reverse proxy of `nhentai.net` and `i.nhentai.net`.
|
||||||
例如用 h.loli.club 来做反向代理的话,需要 h.loli.club 反代 nhentai.net,i.h.loli.club 反带 i.nhentai.net。
|
For example:
|
||||||
然后利用环境变量来下载:
|
|
||||||
|
|
||||||
|
i.h.loli.club -> i.nhentai.net
|
||||||
|
h.loli.club -> nhentai.net
|
||||||
|
|
||||||
|
Set `NHENTAI` env var to your nhentai mirror.
|
||||||
```bash
|
```bash
|
||||||
NHENTAI=http://h.loli.club nhentai --id 123456
|
NHENTAI=http://h.loli.club nhentai --id 123456
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user