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.
Features
- flexible
has_illustration
anddivide_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
- Install this package from pypi:
pip install linovelib2epub
- 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.
- 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
Release history Release notifications | RSS feed
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
Close
Hashes for linovelib2epub-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be02f65cd11584a27ccb86a4face7337cfd832eff5ba10b3f1a878d23ed7b495 |
|
MD5 | aab0ede0a374233807161b8838cad509 |
|
BLAKE2b-256 | f66f39e1ac6d844c6549cb4206445dcc7f5e4abe2bce6bef53bb8728d81559c9 |