Skip to main content

NDL - NOVELDOWNLOADER

Rule-driven Chinese novel downloader and format converter

CI License: MIT Python

简体中文

Status

v0.1.0 is published on PyPI as ndl-storykit. The current source tree is back on the next development version, 0.2.0.dev0, after shipping the first public release. Implemented surfaces include download, TXT/EPUB convert, library management, search, rule updates, optional browser rendering for supported rules, local Web UI, and auditable packaging checks. See docs/superpowers/SESSION-STATE.md for the current handoff snapshot.

What Works Now

  • Validate YAML source rules with ndl rules validate
  • Download a rule-matched static HTML site to TXT or EPUB after installing a YAML rule
  • Convert local TXT files to TXT or styled EPUB
  • Manage the local SQLite library with ndl library list/show/remove
  • Refresh saved ongoing novels with ndl update --all
  • Search rule-defined source indexes with ndl search
  • Install validated remote YAML rules with ndl rules update
  • Use optional Playwright-backed rendering when a rule declares fetcher.type: browser, including rule-defined wait/viewport controls
  • Verify release wheel/sdist contents with scripts/verify_distribution.py
  • Search, download, and trigger manual/recurring library updates from the local Web UI
  • Enforce robots.txt, per-host rate limits, retries, and a first-run lawful-use disclaimer for downloads

What It Does (Roadmap)

  • Download Chinese web novels from static HTML sites, with Playwright for JS-heavy sites as an optional extra
  • Convert between TXT and EPUB formats, standalone or after download
  • Manage a local SQLite library and track ongoing novels for updates
  • Search across multiple sites via rule-defined search endpoints
  • Add new sites by writing YAML rules, not Python code
  • Use either CLI or a local Web UI, both sharing the same state

Non-Goals

NDL does not and will not:

  • Support commercial platforms such as Qidian, Fanqie, Jinjiang, or Qimao
  • Bypass paywalls, Cloudflare, CAPTCHAs, or DRM
  • Include login/account features or proxy pools

See DISCLAIMER.md for the full ethics and legal stance.

Development Install

uv sync
uv run ndl --version

Optional browser-backed rules require the browser extra and a Playwright browser install:

uv sync --extra browser
uv run playwright install chromium
uv run ndl doctor browser

The package is published on PyPI as ndl-storykit. The import path inside the package is still ndl, and the CLI entry point is still ndl:

pip install ndl-storykit
pip install 'ndl-storykit[browser]'   # with optional Playwright fetcher

Usage

ndl download <url> -o book.epub --accept-disclaimer
ndl convert book.txt -o book.epub
ndl library list
ndl update --all --accept-disclaimer
ndl search "keyword"
ndl rules update --manifest-url <manifest-url>
ndl doctor browser
ndl serve --accept-disclaimer
ndl rules validate my-rule.yaml

Contributing

See CONTRIBUTING.md. Rule contributions are especially welcome and do not require Python.

License

MIT

Metadata

Release files for ndl-storykit 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ndl-storykit 0.2.0
File Size Uploaded Provenance Actions
ndl_storykit-0.2.0.tar.gz 369.4 kB Without provenance Details for ndl_storykit-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ndl-storykit 0.2.0
File Interpreter ABI Platform Actions
ndl_storykit-0.2.0-py3-none-any.whl Python 3 none any Details for ndl_storykit-0.2.0-py3-none-any.whl

Total release size: 447.5 kB

Release files / ndl_storykit-0.2.0.tar.gz

Download URL ndl_storykit-0.2.0.tar.gz
Size 369.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fb08ecf1432325659eec8bdcdaed0a7b61cc9a71cb7f57a53ede207058074bf8
BLAKE2b-256 checksum
How to use checksums
02990bc333b53baee9671f5bec56465b6a097748a378a3eac0ec8c54ac78253f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / ndl_storykit-0.2.0-py3-none-any.whl

Download URL ndl_storykit-0.2.0-py3-none-any.whl
Size 78.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f36f118f3830a22023610591df3cdf09fefdd3b9af029e1e74414dd5136e362
BLAKE2b-256 checksum
How to use checksums
2fbb9e741efc089f186db1d500577938bff0f11958dcba4c2b85d1b22a6fca21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for ndl-storykit 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page