下载 哔哩轻小说 文章至Epub
- 安装Pyhon3
- 执行
pip3 install -r requirement.txt
安装依赖 - 执行
python3 bilinovel2epub.py <ID>
,<ID>
替换为书籍ID或书籍首页链接
例子:python3 bilinovel2epub.py https://w.linovelib.com/novel/2611.html
运行成功后会在程序运行目录下找到对应的Epub文件
直接下载release内的二进制文件在终端执行或双击打开
下载 哔哩轻小说 (linovelib) 文章至Epub
License: MIT License
第一个是在 Android 上的 ReadEra 上,添加的 CSS (<style>p{text-indent:2em; padding:0px; margin:0px;}</style>)直接显示成了小说的文本。也可能是阅读器的问题,Windows 上用 Calibre 就没问题。
第二个是在 Windows 上用 Calibre 或 SumatraPDF 打开不分卷生成的 epub 文件,第一级(也就是第几卷)目录识别不出来。用 Calibre 编辑 epub 文件的目录,提示是第一级目录指向的位置不存在。也可能是阅读器的问题,用 ReadEra 就没问题。
我用不分卷、加图片的选项,转换的小说是这个 https://w.linovelib.com/novel/2428/catalog
总之这两个问题,在有的阅读器上是没问题的,所以我也不是很确定。总之还是很方便了,点赞!
目前我用 Calibre 手动编辑 epub,将一级目录指向正确的位置,然后又用替换删掉了添加的 CSS。
例如,下载 2958 的时候,小说正文会出现乱码
運行 3674 編號時觸發錯誤
Traceback (most recent call last):
File "bilinovel2epub.py", line 451, in
File "bilinovel2epub.py", line 345, in 主要
AttributeError: 'NoneType' object has no attribute 'find'
[34508] Failed to execute script 'bilinovel2epub' due to unhandled exception!
我在试图运行README中给出的例子的时候得到了如题所示的问题,运行的内容为复制的readme中的例子。
请问这种情况是我操作有误吗?该如何解决
“python3 bilinovel2epub.py https://w.linovelib.com/novel/2611.html”
现象
下载2958后,第一卷,第一章内容,从第一段到最后一段为止,和网页对不上
检查发现,貌似,丢失了介绍和插图,导致第一章内容,出现在 插图 书签下,
第二章内容跑第一章了.
并且之后每次有插图的页,会出现正文丢失,或者同一段重复出现n次,的情况(不知道是否是插图影响)
我下了两篇小说,都是这样,应该是都有的情况
文章中有多处zatione();
(adsbygoogle = window.adsbygoogle || []).push({});
像是放图片的函数?
我试了试发现会报这个错
java.lang.NullPointerException: Cannot invoke "org.jsoup.nodes.Element.text()" because the return value of "org.jsoup.nodes.Document.selectFirst(String)" is null
at cn.montaro.linovelib.core.fetcher.Fetcher.fetchNovel(Fetcher.java:39)
at cn.montaro.linovelib.cli.Main.start(Main.java:59)
at cn.montaro.linovelib.cli.Main.main(Main.java:34)
https://www.linovelib.com 这个网址不知道为什么我上不去显示Access denied
不知道可不可以增加对https://w.linovelib.com 的支持,这个我能够上得去
您好,感谢贡献代码。但是在运行过程中,从临时文件中生成epub的过程用了很长时间,请问这是否和文本字数或者选择包含图片有关呢?
直接下载的html文件掺杂许多乱码
以 東京暗鴉 (1768) 第十一卷 change:unchange 為例,分卷輸出會產生名為 "东京暗鸦_第十一卷 change" 的空白檔案。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.