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)
功能特性
- 可恢复下载: 运行时自动检测本地已完成的部分, 跳过已下载内容
- 多格式导出: 合并所有章节为
TXTEPUB(可选打包章节插图)
- 广告/活动过滤:
- 章节标题过滤
- 章节正文过滤
- 可选字体混淆还原:
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_interval、book_ids 等配置 (参考 settings.toml 配置说明)
2. 命令行 (CLI)
# 直接通过 URL 启动下载
novel-cli download https://www.hetushu.com/book/5763/index.html
# 使用配置文件中的 book_ids 启动下载
novel-cli download --site qidian
# 指定站点 + 书籍 ID 启动下载
novel-cli download --site n23qb 12282
3. 图形界面 (GUI / Web)
# 启动 Web 界面 (基于当前 settings.toml)
novel-web
# 如需提供局域网/外网访问 (请自行留意安全与网络环境)
# novel-web --listen public
- 运行中可使用
CTRL+C停止服务
从源码安装 (开发版)
体验最新开发功能:
git clone https://github.com/saudadez21/novel-downloader.git
cd novel-downloader
pip install .
# 或安装带可选功能:
# pip install .[font-recovery]
文档导航
项目说明
- 本项目仅供学习和研究使用, 不得用于任何商业或违法用途; 请遵守目标网站的
robots.txt及相关法律法规 - 由于网站结构可能变化或其他问题, 可能导致无法正常工作, 请按需自行调整代码或寻找其他解决方案
- 使用本项目造成的任何法律责任由使用者自行承担, 项目作者不承担相关责任
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file novel_downloader-2.1.0.tar.gz.
File metadata
- Download URL: novel_downloader-2.1.0.tar.gz
- Upload date:
- Size: 267.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a00fb18259680c25ac08087d67b0927c30944da5707b40a129fec2bf59e876d4
|
|
| MD5 |
a25fe2aed33f9a1fc1d0407b26a53976
|
|
| BLAKE2b-256 |
4b26759b90f53c6c668033362f42439b0545f33c5b7d5632dc5fb56dac51087c
|
Provenance
The following attestation bundles were made for novel_downloader-2.1.0.tar.gz:
Publisher:
release.yml on saudadez21/novel-downloader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
novel_downloader-2.1.0.tar.gz -
Subject digest:
a00fb18259680c25ac08087d67b0927c30944da5707b40a129fec2bf59e876d4 - Sigstore transparency entry: 517238558
- Sigstore integration time:
-
Permalink:
saudadez21/novel-downloader@055c45f40a17f3c3af36bc319d8dfbbba47f8211 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/saudadez21
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@055c45f40a17f3c3af36bc319d8dfbbba47f8211 -
Trigger Event:
workflow_run
-
Statement type:
File details
Details for the file novel_downloader-2.1.0-py3-none-any.whl.
File metadata
- Download URL: novel_downloader-2.1.0-py3-none-any.whl
- Upload date:
- Size: 429.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d86dab5c52a224089b8da949b4fa08de635618b332ba74e16d295c0b1d03b4b9
|
|
| MD5 |
7228cbcc4b7e1a20f3ab3459856b9247
|
|
| BLAKE2b-256 |
3b49250f3d291e277ecefc4f4c2b50aced9e4dc30512b8b522dce8047d7b5b30
|
Provenance
The following attestation bundles were made for novel_downloader-2.1.0-py3-none-any.whl:
Publisher:
release.yml on saudadez21/novel-downloader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
novel_downloader-2.1.0-py3-none-any.whl -
Subject digest:
d86dab5c52a224089b8da949b4fa08de635618b332ba74e16d295c0b1d03b4b9 - Sigstore transparency entry: 517238575
- Sigstore integration time:
-
Permalink:
saudadez21/novel-downloader@055c45f40a17f3c3af36bc319d8dfbbba47f8211 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/saudadez21
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@055c45f40a17f3c3af36bc319d8dfbbba47f8211 -
Trigger Event:
workflow_run
-
Statement type: