Giter Site home page Giter Site logo

bilinovel2epub's Introduction

biliNovel2Epub

下载 哔哩轻小说 文章至Epub

使用方法1

  1. 安装Pyhon3
  2. 执行pip3 install -r requirement.txt安装依赖
  3. 执行python3 bilinovel2epub.py <ID>, <ID>替换为书籍ID或书籍首页链接

例子:python3 bilinovel2epub.py https://w.linovelib.com/novel/2611.html
运行成功后会在程序运行目录下找到对应的Epub文件

使用方法2

直接下载release内的二进制文件在终端执行或双击打开

bilinovel2epub's People

Contributors

fangxx3863 avatar imyukehan avatar papersman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bilinovel2epub's Issues

很好用,就是发现两个小问题

第一个是在 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。

AttributeError: 'NoneType' object has no attribute 'find'

運行 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!

正文丢失,章节错乱

现象
下载2958后,第一卷,第一章内容,从第一段到最后一段为止,和网页对不上

检查发现,貌似,丢失了介绍和插图,导致第一章内容,出现在 插图 书签下,
第二章内容跑第一章了.
并且之后每次有插图的页,会出现正文丢失,或者同一段重复出现n次,的情况(不知道是否是插图影响)

我下了两篇小说,都是这样,应该是都有的情况
文章中有多处zatione();

(adsbygoogle = window.adsbygoogle || []).push({});
像是放图片的函数?

广告也爬下来了!

截屏2023-07-12 19 43 48

另外插图页的图片都是lazyload,src="/images/photon.svg",实际图片地址在data-src下,考虑单独处理下?

增加https://w.linovelib.com/支持

我试了试发现会报这个错

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的过程用了很长时间,请问这是否和文本字数或者选择包含图片有关呢?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.