Skip to main content

Craw light novel from [哔哩轻小说(linovelib)](https://w.linovelib.com/) and convert to epub.

Project description

linovelib2epub

Craw light novel from 哔哩轻小说(linovelib) and convert to epub.

Hatch project

Features

  • flexible has_illustration and divide_volume option for epub output
  • built-in http request retry mechanism to improve network fault tolerance
  • built-in random browser user_agent through fake_useragent library
  • built-in strict integrity check about image download
  • built-in mechanism for saving temporary book data by pickle library
  • use multi-thread to download images

Usage

  1. Install this package from pypi:
pip install linovelib2epub
  1. create a python file and edit the content as follows:
from linovelib2epub.linovel import Linovelib2Epub

# warning!: must run within __main__ module guard due to process spawn issue.
if __name__ == '__main__':
    linovelib_epub = Linovelib2Epub(book_id=3279)
    linovelib_epub.run()

If it finished without errors, you can see the epub file is under the folder where your python file is located.

  1. For more options.

TODO

Todo

  • (feat) utilize sigil to debug CSS rules for book style beautification
  • (devops) publish this library to PYPI not TestPyPI
  • logging level: info or succinct

Known issues

See docs/ folder.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

linovelib2epub-0.0.6-py3-none-any.whl (22.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page