Skip to main content

A command-line tool for downloading Chinese web novels from Qidian and similar platforms.

Project description

novel-downloader

一个基于 playwrightaiohttp 的小说下载工具/库。

本项目开发环境为 Python 3.12, 需确保运行环境为 Python 3.11 及以上版本

功能特性

  • 支持断点续爬, 自动续传未完成任务
  • 自动整合所有章节并导出为:
    • TXT
    • EPUB (可选包含章节插图)
  • 支持活动广告过滤:
    • 章节标题
    • 章节正文

快速开始

安装

使用 pip 安装:

pip install novel-downloader

如需使用浏览器模式 (即 mode: browser), 请确保已安装 Playwright 依赖:

playwright install

如需启用字体解密功能 (decode_font, 用于处理起点中文网对近一个月更新章节所采用的字体混淆技术), 请使用扩展安装方式:

pip install novel-downloader[font-recovery]

CLI 模式

# 初始化默认配置 (生成 settings.toml)
novel-cli config init

# 编辑 ./settings.toml 完成 site/book_ids 等
# 可查看 docs/3-settings-schema.md

# 执行下载任务
novel-cli download 123456

TUI 模式 (终端用户界面)

注意: TUI 模式仍在开发中, 目前尚未实现登录和修改设置等功能。建议优先使用稳定的 CLI 模式。

# 初始化默认配置 (生成 settings.toml)
novel-cli config init

# 编辑 ./settings.toml 修改网络配置
# 可查看 docs/3-settings-schema.md

# 启动 TUI 界面
novel-tui

GUI 模式 (图形界面)

尚未实现


从 GitHub 安装 (开发版)

如需体验开发中的最新功能, 可通过 GitHub 安装:

git clone https://github.com/BowenZ217/novel-downloader.git
cd novel-downloader
pip install .
# 或安装带可选功能:
# pip install .[font-recovery]

文档结构


项目说明

  • 本项目仅供学习和研究使用, 不得用于任何商业或违法用途。请遵守目标网站的 robots.txt 以及相关法律法规。
  • 本项目开发者对因使用该工具所引起的任何法律责任不承担任何责任。
  • 如果遇到网站结构变化或其他问题, 可能导致程序无法正常工作, 请自行调整代码或寻找其他解决方案。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

novel_downloader-1.4.2.tar.gz (187.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

novel_downloader-1.4.2-py3-none-any.whl (260.4 kB view details)

Uploaded Python 3

File details

Details for the file novel_downloader-1.4.2.tar.gz.

File metadata

  • Download URL: novel_downloader-1.4.2.tar.gz
  • Upload date:
  • Size: 187.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for novel_downloader-1.4.2.tar.gz
Algorithm Hash digest
SHA256 68a709b8d0f450267fd17395691cc2039b7fbf09658879f2426d82a7a173a807
MD5 f4fa7fb2c53b0fe20f3ad04e814f4227
BLAKE2b-256 d44273980c29c8615077f4390c1138b3fef633679da31d9bf95329563b91748b

See more details on using hashes here.

File details

Details for the file novel_downloader-1.4.2-py3-none-any.whl.

File metadata

File hashes

Hashes for novel_downloader-1.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ba3c4dae63cfa5ff1d9eb697e7ecff8bef4155f77ec8d55df1cf512675b349eb
MD5 cea05db15e5bc0a93d2c764bea215b44
BLAKE2b-256 bf56f3a11dc2ec4936e29849ed4ab473137965b6512541bafe524bf657fdc300

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page