]> git.lizzy.rs Git - nhentai.git/blob - README.md
0.2.15
[nhentai.git] / README.md
1 nhentai\r
2 =======\r
3            _   _            _        _\r
4      _ __ | | | | ___ _ __ | |_ __ _(_)\r
5     | '_ \| |_| |/ _ \ '_ \| __/ _` | |\r
6     | | | |  _  |  __/ | | | || (_| | |\r
7     |_| |_|_| |_|\___|_| |_|\__\__,_|_|\r
8 \r
9 あなたも変態。 いいね?  \r
10 [![Build Status](https://travis-ci.org/RicterZ/nhentai.svg?branch=master)](https://travis-ci.org/RicterZ/nhentai) ![nhentai PyPI Downloads](https://pypistats.com/badge/nhentai.svg)  \r
11 \r
12 \r
13 nHentai is a CLI tool for downloading doujinshi from [nhentai.net](http://nhentai.net).\r
14 \r
15 ### Installation\r
16 \r
17     git clone https://github.com/RicterZ/nhentai\r
18     cd nhentai\r
19     python setup.py install\r
20     \r
21 ### Gentoo\r
22 \r
23     layman -fa glicOne\r
24     sudo emerge net-misc/nhentai\r
25 \r
26 ### Usage\r
27 Download specified doujinshi:\r
28 ```bash\r
29 nhentai --id=123855,123866\r
30 ```\r
31 \r
32 Search a keyword and download the first page:\r
33 ```bash\r
34 nhentai --search="tomori" --page=1 --download\r
35 ```\r
36 \r
37 Download your favourite doujinshi (login required):\r
38 ```bash\r
39 nhentai --login "username:password" --download\r
40 ```\r
41 \r
42 Download by tag name:\r
43 ```bash\r
44 nhentai --tag lolicon --download\r
45 ```\r
46 \r
47 ### Options\r
48 \r
49 + `-t, --thread`: Download threads, max: 10  \r
50 + `--output`:Output dir of saving doujinshi  \r
51 + `--tag`:Download by tag name  \r
52 + `--timeout`: Timeout of downloading each image   \r
53 + `--proxy`: Use proxy, example: http://127.0.0.1:8080/  \r
54 + `--login`: username:password pair of your nhentai account  \r
55 + `--nohtml`: Do not generate HTML  \r
56 + `--cbz`: Generate Comic Book CBZ File  \r
57 \r
58 ### nHentai Mirror\r
59 If you want to use a mirror, you should set up a reverse proxy of `nhentai.net` and `i.nhentai.net`.\r
60 For example:\r
61 \r
62     i.h.loli.club -> i.nhentai.net\r
63     h.loli.club -> nhentai.net\r
64 \r
65 Set `NHENTAI` env var to your nhentai mirror.\r
66 ```bash\r
67 NHENTAI=http://h.loli.club nhentai --id 123456\r
68 ```\r
69 \r
70 ![](./images/search.png)  \r
71 ![](./images/download.png)  \r
72 ![](./images/viewer.png)  \r
73 \r
74 ### License  \r
75 MIT\r
76 \r
77 ### あなたも変態\r
78 ![](./images/image.jpg)\r