Skip to main content

NovelSave

PyPI Python Version Last Commit Issues Pull Requests pre-commit.ci status License Discord

This is a tool to download and convert novels from popular sites to e-books.

v0.7.+ is not compatible with previous versions

Install

Local

pip install novelsave

or

pip install git+https://github.com/mensch272/novelsave.git

Chatbots

Discord

Join our server: https://discord.gg/eFgtrKTFt3

Environmental Variables

The default environmental variables are shown below. Modify them to your liking when deploying.

DISCORD_TOKEN is required, others are optional.

DISCORD_TOKEN=  # Required: discord bot token
DISCORD_SESSION_TIMEOUT=10 # Minutes
DISCORD_SESSION_THREADS=5
DISCORD_SEARCH_LIMIT=20  # Maximum results to show
DISCORD_SEARCH_DISABLED=no  # Disable search functionality
DISCORD_EXTERNAL_FILEHOST=none  # options: anonfiles, gofiles, none

Heroku Deployment

Fill out the following form and set the environmental variables.

Deploy

Usage

Basic

To download and package the novel in a single line use the following command:

novelsave process <id_or_url>

The most common commands you'll be using are:

update

The command requires the url of the id of the novel as an argument. When the novel has been identified it attempts to update the current novel information in the following steps:

  1. Download the novel webpage.
  2. Update the novel information. This includes title, author and pending chapters.
  3. Identify the chapters with no content and download and update them.
  4. Download any assets that require to be downloaded (assets are identified during chapter download).

Note that, if url is provided and the novel does not already exist in the database, a new novel entry will be created.

For more information, run

novelsave update --help

package

The command requires the url of the id of the novel as an argument. When novel is identified compiles the downloaded content into the specified formats.

Specify a compilation target using the --target option. If option is not provided compiles to only epub.

Or you may use --target-all to package to all supported formats.

novelsave package <id_or_url> --target epub --target web

Supported compilation targets:

epub html mobi pdf azw3 text

For more information, run

novelsave package --help

process

The command requires the url of the id of the novel as an argument. This is a combination of the above two commands, update and package.

This is a command of convenience, to update and package in a single command.

For more information, run

novelsave process --help

Configurations

Use the following command to show all the current configurations. Default value will be shown in case none is set.

novelsave config show

You may change your configurations using set or reset. For example:

novelsave config set novel.dir --value ~/mynovels
novelsave config reset novel.dir

All supported configurations are:

  • novel.dir - Your desired novel's packaged data (epub, mobi) save location

More

To find more information, use option --help on groups and commands.

novelsave --help
novelsave novel --help

Cookies

Want to access authentication protected content, use browser cookies.

Browser cookies

This is an optional feature where you may use cookies from your browsers when sending requests. This effectively allows the script to pretend as the browser and thus allowing access to any content the browser would also be able to access.

You can use this in the following simple steps:

  1. Login to your source of choice with your browser of choice (though make sure the browser is supported).
  2. Use option --browser <browser> when updating novel (also available in process).
novelsave [update|process] <id_or_url> --browser <browser>

Supported

chrome firefox chromium opera edge brave

Sources

Sources have been moved to its own package. You can install and upgrade sources using the following command.

pip install novelsave-sources --upgrade

Disclaimer

We are not affiliated, associated, authorized, endorsed by, or in any way officially connected with the any of the sources mentioned above.

License

Apache-2.0

Metadata

Release files for novelsave 0.8.4

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

Source distribution (sdist)

Source distribution for novelsave 0.8.4
File Size Uploaded
novelsave-0.8.4.tar.gz 93.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for novelsave 0.8.4
File Interpreter ABI Platform
novelsave-0.8.4-py3-none-any.whl Python 3 none any Details

Total release size: 222.0 kB

Release files / novelsave-0.8.4.tar.gz

Download URL novelsave-0.8.4.tar.gz
Size 93.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f5af80e619206c1426021aa1f042c9e00b181ff937f3b51e1d61dc584ad8f042
BLAKE2b-256 checksum
How to use checksums
ef5771612698c535d87ae23bfb4ffae6d53edeeead964653ce5d6763957a443e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Release files / novelsave-0.8.4-py3-none-any.whl

Download URL novelsave-0.8.4-py3-none-any.whl
Size 128.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9202564b2283d65b635dc7243df9cb827b167a097d73c948c5a8c417d405f789
BLAKE2b-256 checksum
How to use checksums
54e77c28cb6b8f2b91992a60aa452f238b73674789551b5d70b240e84ad0fb45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Release history Release notifications | RSS feed

This release

0.8.4 This release

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.8

2 release files

0.7.7

2 release files

0.7.6

2 release files

0.7.5

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.9

2 release files

0.5.8

2 release files

0.5.7

2 release files

0.5.6

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.9

1 release file

0.3.8

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.2.4

2 release files

0.2.2

2 release files

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