nhentai.net Doujinshis下载程序
nhentai的Python项目详细描述
_ _ _ _ _ __ | | | | ___ _ __ | |_ __ _(_) | '_ \| |_| |/ _ \ '_ \| __/ _` | | | | | | _ | __/ | | | || (_| | | |_| |_|_| |_|\___|_| |_|\__\__,_|_|
__変態。__?
nhentai是一个cli工具,用于从<;http://nhentai.net>;
安装
git clone https://github.com/RicterZ/nhentai cd nhentai python setup.py install
安装(Gentoo)
layman -fa glicOne sudo emerge net-misc/nhentai
用法
important:要绕过nhentai频率限制,应该使用–cookie选项来存储cookie。
默认下载文件夹将是运行命令的路径(cli path)。
根据验证码设置Nhentai cookie:
nhentai --cookie 'YOUR COOKIE FROM nhentai.net'
下载指定的斗劲石:
nhentai --id=123855,123866
使用文件中指定的ID下载Doujinshi(按行拆分Doujinshi ID):
nhentai --file=doujinshi.txt
搜索关键字并下载第一页:
nhentai --search="tomori" --page=1 --download
按标签名称下载:
nhentai --tag lolicon --download --page=2
延迟下载您的收藏夹:
nhentai --favorites --download --delay 1
格式化输出doujinshi文件夹名:
nhentai --id 261100 --format '[%i]%s'
支持的Doujinshi文件夹格式化程序:
- %I:Doujinshi id
- %T:Doujinshi名称
- %S:Doujinshi字幕(译名)
- %A:Doujinshi作者姓名
其他选项:
Options: # Operation options -h, --help show this help message and exit -D, --download download doujinshi (for search results) -S, --show just show the doujinshi information # Doujinshi options --id=ID doujinshi ids set, e.g. 1,2,3 -s KEYWORD, --search=KEYWORD search doujinshi by keyword --tag=TAG download doujinshi by tag -F, --favorites list or download your favorites. # Multi-page options --page=PAGE page number of search results --max-page=MAX_PAGE The max page when recursive download tagged doujinshi # Download options -o OUTPUT_DIR, --output=OUTPUT_DIR output dir -t THREADS, --threads=THREADS thread count for downloading doujinshi -T TIMEOUT, --timeout=TIMEOUT timeout for downloading doujinshi -d DELAY, --delay=DELAY slow down between downloading every doujinshi -p PROXY, --proxy=PROXY uses a proxy, for example: http://127.0.0.1:1080 -f FILE, --file=FILE read gallery IDs from file. --format=NAME_FORMAT format the saved folder name # Generating options --html generate a html viewer at current directory --no-html don't generate HTML after downloading -C, --cbz generate Comic Book CBZ File --rm-origin-dir remove downloaded doujinshi dir when generated CBZ file. # nHentai options --cookie=COOKIE set cookie of nhentai to bypass Google recaptcha
心泰镜
如果要使用镜像,则应设置nhentai.net和i.nhentai.net的反向代理。 例如:
i.h.loli.club -> i.nhentai.net h.loli.club -> nhentai.net
将nhentaienv var设置为nhentai镜像。
NHENTAI=http://h.loli.club nhentai --id 123456