update README for issue #237

This commit is contained in:
Ricter Z 2022-05-02 18:48:02 +08:00
parent 61945a6e97
commit 5a3f1009c9

View File

@ -138,24 +138,27 @@ Other options:
.. code-block:: .. code-block::
Usage:
nhentai --search [keyword] --download
NHENTAI=http://h.loli.club nhentai --id [ID ...]
nhentai --file [filename]
Environment Variable:
NHENTAI nhentai mirror url
Options: Options:
# Operation options
-h, --help show this help message and exit -h, --help show this help message and exit
-D, --download download doujinshi (for search results) -D, --download download doujinshi (for search results)
-S, --show just show the doujinshi information -S, --show just show the doujinshi information
# Doujinshi options
--id=ID doujinshi ids set, e.g. 1,2,3 --id=ID doujinshi ids set, e.g. 1,2,3
-s KEYWORD, --search=KEYWORD -s KEYWORD, --search=KEYWORD
search doujinshi by keyword search doujinshi by keyword
--tag=TAG download doujinshi by tag
-F, --favorites list or download your favorites. -F, --favorites list or download your favorites.
--page-all all search results
# Multi-page options --page=PAGE, --page-range=PAGE
--page=PAGE page number of search results page number of search results. e.g. 1,2-5,14
--max-page=MAX_PAGE The max page when recursive download tagged doujinshi --sorting=SORTING sorting of doujinshi (recent / popular /
popular-[today|week])
# Download options
-o OUTPUT_DIR, --output=OUTPUT_DIR -o OUTPUT_DIR, --output=OUTPUT_DIR
output dir output dir
-t THREADS, --threads=THREADS -t THREADS, --threads=THREADS
@ -164,23 +167,32 @@ Other options:
timeout for downloading doujinshi timeout for downloading doujinshi
-d DELAY, --delay=DELAY -d DELAY, --delay=DELAY
slow down between downloading every doujinshi slow down between downloading every doujinshi
-p PROXY, --proxy=PROXY --proxy=PROXY store a proxy, for example: -p 'http://127.0.0.1:1080'
uses a proxy, for example: http://127.0.0.1:1080
-f FILE, --file=FILE read gallery IDs from file. -f FILE, --file=FILE read gallery IDs from file.
--format=NAME_FORMAT format the saved folder name --format=NAME_FORMAT format the saved folder name
-r, --dry-run Dry run, skip file download.
# Generating options
--html generate a html viewer at current directory --html generate a html viewer at current directory
--no-html don't generate HTML after downloading --no-html don't generate HTML after downloading
--gen-main generate a main viewer contain all the doujin in the folder --gen-main generate a main viewer contain all the doujin in the
folder
-C, --cbz generate Comic Book CBZ File -C, --cbz generate Comic Book CBZ File
-P --pdf generate PDF file -P, --pdf generate PDF file
--rm-origin-dir remove downloaded doujinshi dir when generated CBZ --rm-origin-dir remove downloaded doujinshi dir when generated CBZ or
or PDF file. PDF file.
--meta generate a metadata file in doujinshi format
# nHentai options --regenerate-cbz regenerate the cbz file if exists
--cookie=COOKIE set cookie of nhentai to bypass Google recaptcha --cookie=COOKIE set cookie of nhentai to bypass Cloudflare captcha
--useragent=USERAGENT
set useragent to bypass Cloudflare captcha
--language=LANGUAGE set default language to parse doujinshis
--clean-language set DEFAULT as language to parse doujinshis
--save-download-history
save downloaded doujinshis, whose will be skipped if
you re-download them
--clean-download-history
clean download history
--template=VIEWER_TEMPLATE
set viewer template
============== ==============
nHentai Mirror nHentai Mirror