Skip to main content

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

Project description

novel-downloader

基于 aiohttp 的异步小说下载工具 / 库。支持断点续传、广告过滤与 TXT/EPUB 导出, 提供 CLI 与 Web 图形界面。

运行要求: Python 3.11+ (开发环境: Python 3.12)

功能特性

  • 可恢复下载: 运行时自动检测本地已完成的部分, 跳过已下载内容
  • 多格式导出: 合并所有章节为
    • TXT
    • EPUB (可选打包章节插图)
  • 广告/活动过滤:
    • 章节标题过滤
    • 章节正文过滤
  • 可选字体混淆还原: decode_font
  • 双形态使用: 命令行 (CLI) 与 Web 图形界面 (GUI)

安装

使用 pip 安装稳定版:

pip install novel-downloader

启用字体解密功能 (decode_font):

pip install "novel-downloader[font-recovery]"

参见: 安装


快速开始

1. 初始化配置

# 生成默认配置 ./settings.toml
novel-cli config init

编辑生成的 ./settings.toml, 可修改 request_intervalbook_ids 等配置 (参考 settings.toml 配置说明)

2. 命令行 (CLI)

# 执行下载任务 (示例: 书籍 ID 为 123456, 默认站点为起点)
novel-cli download 123456

3. 图形界面 (GUI / Web)

# 启动 Web 界面 (基于当前 settings.toml)
novel-web

# 如需提供局域网/外网访问 (请自行留意安全与网络环境)
# novel-web --listen public

从源码安装 (开发版)

体验最新开发功能:

git clone https://github.com/saudadez21/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-2.0.0.tar.gz (242.4 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-2.0.0-py3-none-any.whl (368.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: novel_downloader-2.0.0.tar.gz
  • Upload date:
  • Size: 242.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for novel_downloader-2.0.0.tar.gz
Algorithm Hash digest
SHA256 eb761daec6bdae0ab51afdc27193b0b41adbe98c8d71f16d553fbf1c3a879cf5
MD5 d8fc680c76c0f92ca744f1f765e31fc9
BLAKE2b-256 c702e6f50f9488da5680a57886888acbb6d21ba4b93a9af0009123cefc6f0f8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for novel_downloader-2.0.0.tar.gz:

Publisher: release.yml on saudadez21/novel-downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for novel_downloader-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4080e95e0ae9c3830aa695849bc1d440e68f4633d56244839eaed07a2a3748cb
MD5 745c4cdeb3e207961c4551ac7dfa3aac
BLAKE2b-256 57e6935d386bcb1175f52d907847d2b98603edcb157b0aaa5ac88f2ccf4e43ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for novel_downloader-2.0.0-py3-none-any.whl:

Publisher: release.yml on saudadez21/novel-downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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