DownloadAllContent

Lightweight web scraping script. Fetch and download main textual content from the current page, provide special support for novels

< Feedback on DownloadAllContent

Review: Good - script works

§
Posted: 2023-12-21

有些网站反爬,我试的只有东方永页机的强制拼页可以获取小说全文。不过内容在iframe里,小说下载器好像获取不了。
下面是jq获取iframe内容的一种写法,也许有用:
var allStr = "";

$("html,iframe").contents().find(":not(style,script,noscript)").each(function() {
var addStr = $(this).clone().children().remove().end().text().replace(/\s+/g, " ")
if (addStr.replace(/[^一-鿯0-9]/g, "").length > 6) {
allStr += "

";
}
allStr += addStr + " ";
});

hoothinAuthor
§
Posted: 2023-12-22

设置页勾选“下载前显示章节筛选排序窗口”,下载时可选用iframe解析内容

§
Posted: 2023-12-22

手机上那个窗口太大了,看不了,有这个功能就行

Post reply

Sign in to post a reply.