nhentai.net Doujinshis下载程序

nhentai的Python项目详细描述


       _   _            _        _
 _ __ | | | | ___ _ __ | |_ __ _(_)
| '_ \| |_| |/ _ \ '_ \| __/ _` | |
| | | |  _  |  __/ | | | || (_| | |
|_| |_|_| |_|\___|_| |_|\__\__,_|_|

__変態。__?

travispypilicense

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.neti.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
nhentainhentainhentai

__変態

nhentai

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Java例外。Lang.Stringindexoutofboundsexception索引超出范围(0)   java Spring引导Freemarker从2.2.0升级失败   重构Java反模式名称?包含对象的对象包含。。。等   用java处理JDBC可能出现的死锁的最佳方法   java无法访问主线程上的数据库,因为它可能会在很长一段时间内锁定UI   java如何将固定大小的画布包装在边框窗格中的滚动窗格居中?   java解析xsd文件后得到空结果   在html页面中表示XML文件的java   socketjava对象流   sql Java越界异常数据库   JavaJBoss7.1.1不会在Mavericks上启动   Twincat ADS事件驱动读取在一段时间后停止工作(Java)   java MyBatis使用生成的ID插入所有   Mojave上缺少MacOS Java控制面板   JavaGuice:如果多次注入相同的依赖项,是否注入了该依赖项的相同实例?