X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;ds=sidebyside;f=README.rst;h=579861910222bafdf708d8a947f3f9c2241ab177;hb=7594625d72ef851e78c21ad18106ae39c8186245;hp=235fd0be20efa8f560108c2e0790ec23d5902240;hpb=97857b8dc6baa7c4252676e5e2ca3965e304d074;p=nhentai.git diff --git a/README.rst b/README.rst index 235fd0b..5798619 100644 --- a/README.rst +++ b/README.rst @@ -19,15 +19,30 @@ nhentai nHentai is a CLI tool for downloading doujinshi from -============ -Installation -============ +=================== +Manual Installation +=================== .. code-block:: git clone https://github.com/RicterZ/nhentai cd nhentai python setup.py install - + +================== +Installation (pip) +================== +Alternatively, install from PyPI with pip: + +.. code-block:: + + pip install nhentai + +For a self-contained installation, use `Pipx `_: + +.. code-block:: + + pipx install nhentai + ===================== Installation (Gentoo) ===================== @@ -48,9 +63,19 @@ Set your nhentai cookie against captcha: .. code-block:: bash - # nhentai --cookie "YOUR COOKIE FROM nhentai.net" +**NOTE**: The format of the cookie is `"csrftoken=TOKEN; sessionid=ID"` + +| To get csrftoken and sessionid, first login to your nhentai account in web browser, then: +| (Chrome) |ve| |ld| More tools |ld| Developer tools |ld| Application |ld| Storage |ld| Cookies |ld| https://nhentai.net +| (Firefox) |hv| |ld| Web Developer |ld| Web Developer Tools |ld| Storage |ld| Cookies |ld| https://nhentai.net +| + +.. |hv| unicode:: U+2630 .. https://www.compart.com/en/unicode/U+2630 +.. |ve| unicode:: U+22EE .. https://www.compart.com/en/unicode/U+22EE +.. |ld| unicode:: U+2014 .. https://www.compart.com/en/unicode/U+2014 + Download specified doujinshi: .. code-block:: bash @@ -63,17 +88,20 @@ Download doujinshi with ids specified in a file (doujinshi ids split by line): nhentai --file=doujinshi.txt -Search a keyword and download the first page: +Set search default language .. code-block:: bash - nhentai --search="tomori" --page=1 --download + nhentai --language=english -Download by tag name: +Search a keyword and download the first page: .. code-block:: bash - nhentai --tag lolicon --download --page=2 + nhentai --search="tomori" --page=1 --download + # you also can download by tags and multiple keywords + nhentai --search="tag:lolicon, artist:henreader, tag:full color" + nhentai --search="lolicon, henreader, full color" Download your favorites with delay: @@ -133,9 +161,11 @@ Other options: # Generating options --html generate a html viewer at current directory --no-html don't generate HTML after downloading + --gen-main generate a main viewer contain all the doujin in the folder -C, --cbz generate Comic Book CBZ File + -P --pdf generate PDF file --rm-origin-dir remove downloaded doujinshi dir when generated CBZ - file. + or PDF file. # nHentai options --cookie=COOKIE set cookie of nhentai to bypass Google recaptcha @@ -147,7 +177,7 @@ nHentai Mirror If you want to use a mirror, you should set up a reverse proxy of `nhentai.net` and `i.nhentai.net`. For example: -.. code-block:: +.. code-block:: i.h.loli.club -> i.nhentai.net h.loli.club -> nhentai.net