#novel #epub #sfacg #ciweimao #ciyuanji

bin+lib novel-cli

A set of tools for downloading novels from the web, manipulating text, and generating EPUB

30 releases (10 breaking)

new 0.11.8 Nov 1, 2024
0.11.6 Sep 9, 2024
0.11.3 Jul 18, 2024
0.5.0 Jul 31, 2023
0.1.4 Jan 27, 2023

#409 in Command line utilities

Download history 764/week @ 2024-07-14 61/week @ 2024-07-21 25/week @ 2024-07-28 239/week @ 2024-08-04 17/week @ 2024-08-11 233/week @ 2024-09-08 126/week @ 2024-09-15 104/week @ 2024-09-22 11/week @ 2024-09-29 3/week @ 2024-10-06 185/week @ 2024-10-27

189 downloads per month

MIT/Apache

200KB
5K SLoC

cli

Test codecov docs.rs MSRV Crates.io Crates.io


A set of tools for downloading novels from the web, manipulating text, and generating EPUB

Platform

  • Windows
  • Linux
  • macOS

Installation

You can download the compiled file from release, or compile it yourself

# Download the source code from https://crates.io
cargo install novel-cli

# Or download the source code from GitHub
git clone https://github.com/novel-rs/cli
cd cli
cargo build --release

If you compile it yourself, you need the following dependencies:

  • Clang
  • CMake
  • Python / Python3

The novel-cli build subcommand requires pandoc

The novel-cli real-cugan subcommand requires realcugan-ncnn-vulkan

Usage

You can run novel-cli help to view help information

Examples

  • The basic format of the command is:
novel-cli [OPTIONS] <COMMAND> [COMMAND-OPTIONS] [ARGUMENTS]
  • Download a novel from source in format
novel-cli download <novel_id> --source <source> --format <output_format>
  • Search for a novel from source
novel-cli search --source <source> <keyword>

Commands

  • sign: Sign in and display the current amount of money
  • download: Download novel
  • search: Search novels
  • info: Show novel information
  • read: Read novel
  • bookshelf: Show novels in the bookshelf
  • template: Generate pandoc-style markdown file template
  • transform: Transform pandoc-style markdown file
  • check: Check pandoc-style markdown file format and content
  • build: Build novel from pandoc-style markdown file or mdBook folder
  • zip: Zip an EPUB folder
  • unzip: Unzip an EPUB file
  • real-cugan: Run realcugan-ncnn-vulkan to super-resolution images
  • update: Check for updates, download file from GitHub, and replace
  • completions: Generate shell completion to stdout
  • help: Print this message or the help of the given subcommand(s)

Options

  • -v, --verbose: Use verbose output. This option provides more detailed output
  • -q, --quiet: Do not print logs (default: false). This option suppresses logging output
  • --backtrace: Print backtrace information. This option displays the backtrace information
  • -h, --help: Print help. This option displays the help information
  • -V, --version: Print version. This option prints the version information

Contributing

You should read CONTRIBUTING first

License

All the code in this repository is released under Apache License 2.0 and MIT license

Dependencies

~100–140MB
~2.5M SLoC