404-novel-project / novel-downloader

一个可扩展的通用型小说下载器。
GNU Affero General Public License v3.0
879 stars 84 forks source link

部分 Lofter 抓取出错,没有正确识别正文 #252

Closed yijiluokong closed 2 years ago

yijiluokong commented 2 years ago

必要条件

当我尝试复现issue时……

问题描述

在lofter的文章界面和博主的归档界面,脚本既不显示图标,也没有Tampermonkey的脚本控制界面出现,呈现脚本不支持lofter网站的状态

问题发生的网址:

https://zhangqilingdeweizhuigu.lofter.com/post/1edf6021_2b5853c1c

复现步骤

  1. 打开网址
  2. 发现脚本的图标没有出现

期待的行为

出现脚本图标,脚本正常运行

实际的行为

在lofter的文章界面和博主的归档界面,脚本既不显示图标,也没有Tampermonkey的脚本控制界面出现,呈现脚本不支持lofter网站的状态

小说下载器脚本版本

4.9.3.721

脚本管理器(Tampermonkey/Violentmonkey)版本

4.13.6136

浏览器名称及版本

Firefox 91.0 (64 位)

yingziwu commented 2 years ago

这个不能算是Bug吧。

因为 Lofter 样式太多,归栏页也不是每个博客都有,所以就将脚本设计为只在 index 页运行。

yijiluokong commented 2 years ago

问题解决了,谢谢!

yijiluokong commented 2 years ago

脚本在主页下载的文件只有每个文章的标题,没有正文,标题下都是博主的简介。调试日志:https://send.bgme.bid/download/ed1925d52a630c71/#CtlVHra5XVqYhoLhGyYXlA

yijiluokong commented 2 years ago

脚本在此网址上仍然存在同样的问题:https://zhangqilingdeweizhuigu.lofter.com/,问题为抓取的文件中每一章的正文都显示为lofter的index页的博主简介。调试日志:https://send.bgme.bid/download/5898910ce6797511/#iODvxz461Y9qB5PnznV--w

yingziwu commented 2 years ago

部分 Lofter 抓取出错,没有正确识别正文

https://zhangqilingdeweizhuigu.lofter.com/