]> git.lizzy.rs Git - nhentai.git/blob - README.md
update user-agent
[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 ### Installation (Gentoo)\r
22 \r
23     layman -fa glicOne\r
24     sudo emerge net-misc/nhentai\r
25 \r
26 ### Usage\r
27 **IMPORTANT**: To bypass the nhentai frequency limit, you should use `--login` option to log into nhentai.net.\r
28 \r
29 Download specified doujinshi:\r
30 ```bash\r
31 nhentai --id=123855,123866\r
32 ```\r
33 \r
34 Download doujinshi with ids specified in a file:\r
35 ```bash\r
36 nhentai --file=doujinshi.txt\r
37 ```\r
38 \r
39 Search a keyword and download the first page:\r
40 ```bash\r
41 nhentai --search="tomori" --page=1 --download\r
42 ```\r
43 \r
44 Download your favourite doujinshi (login required):\r
45 ```bash\r
46 nhentai --login "username:password" --download\r
47 ```\r
48 \r
49 Download by tag name:\r
50 ```bash\r
51 nhentai --tag lolicon --download\r
52 ```\r
53 \r
54 ### Options\r
55 \r
56 + `-t, --thread`: Download threads, max: 10  \r
57 + `--output`:Output dir of saving doujinshi  \r
58 + `--tag`:Download by tag name  \r
59 + `--timeout`: Timeout of downloading each image   \r
60 + `--proxy`: Use proxy, example: http://127.0.0.1:8080/  \r
61 + `--login`: username:password pair of your nhentai account  \r
62 + `--nohtml`: Do not generate HTML  \r
63 + `--cbz`: Generate Comic Book CBZ File  \r
64 \r
65 ### nHentai Mirror\r
66 If you want to use a mirror, you should set up a reverse proxy of `nhentai.net` and `i.nhentai.net`.\r
67 For example:\r
68 \r
69     i.h.loli.club -> i.nhentai.net\r
70     h.loli.club -> nhentai.net\r
71 \r
72 Set `NHENTAI` env var to your nhentai mirror.\r
73 ```bash\r
74 NHENTAI=http://h.loli.club nhentai --id 123456\r
75 ```\r
76 \r
77 ![](./images/search.png)  \r
78 ![](./images/download.png)  \r
79 ![](./images/viewer.png)  \r
80 \r
81 ### License  \r
82 MIT\r
83 \r
84 ### あなたも変態\r
85 ![](./images/image.jpg)\r