Skip to main content

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

Project description

novel-downloader

一个基于 DrissionPagerequests 的小说下载器。


项目简介

novel-downloader 是一个通用的小说下载库 / CLI 工具,

  • 大多数支持的站点仅依赖 requests 进行 HTTP 抓取
  • 对于起点中文网 (Qidian), 可在配置中选择:
    • mode: session : 纯 Requests 模式
    • mode: browser : 基于 DrissionPage 驱动 Chrome 的浏览器模式 (可处理更复杂的 JS/加密)。
  • 如果在 browser 模式下且 login_required: true, 首次运行会自动打开浏览器, 请完成登录后继续。

快速开始

# 克隆 + 安装
git clone https://github.com/BowenZ217/novel-downloader.git
cd novel-downloader
pip install .
# 或 pip install .[font-recovery]

# 初始化默认配置
novel-cli settings init

# 编辑 ./settings.yaml 完成 site/book_ids 等, 可查看 docs/4-settings-schema.md
# 运行下载
novel-cli download 123456

更多使用方法, 查看 使用示例


功能特性

  • 爬取起点中文网的小说章节内容 (支持免费与已订阅章节)
  • 自动整合所有章节并输出为完整的 TXT 文件
  • 支持活动广告过滤:
    • 章节标题
    • 章节正文
    • 作者说

文档结构


项目说明

  • 本项目仅供学习和研究使用, 不得用于任何商业或违法用途。请遵守目标网站的 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.1.1.tar.gz (129.6 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.1.1-py3-none-any.whl (176.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: novel_downloader-1.1.1.tar.gz
  • Upload date:
  • Size: 129.6 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.1.1.tar.gz
Algorithm Hash digest
SHA256 a803bc6b818a06914899dff38e1c14f156578960941a420b66f8750c954c781f
MD5 bd0ac36b1cb0a5b9f8c7954a8b2122c1
BLAKE2b-256 9b20d5e15f6abd9eb163d7788f0b39791828033b0248d69daf808dde2e561f30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for novel_downloader-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9d4c3c0f7e105d0b3b86c1dec963c2b5074337becb2df46abcc04d6d3bc9522f
MD5 02936da53a2e28af494630d3a3ba9b8c
BLAKE2b-256 06050c39bae05039b6bee9e1867c78fdfbd09b955a9eecb944ed25e9b03c2c85

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