Fetch and download main content on current page, provide special support for chinese novel
Versión del día
Lightweight crawling script, used to download the main content of the webpage, theoretically suitable for any non-Ajax novel website, forum, etc. without writing any rules for that.
The script will automatically retrieve the main content on the page and download it.
If you are in the novel catalog page, it will traverse all the chapters, sort and save them as a TXT file.
Buy me a coffee if it helps with PayPal.Me
Stream links from cloud storage
The following functions need to be entered through the Greasemonkey command menu
.mask,.ksam, which means to delete the element whose class is mask or ksam.l_chaptname>a, after inputting and downloading, it will be found that the body content cannot be downloaded through the url, the body is Downloaded through articlescontent, then you can follow @@articles@@articlescontent (@@ separated) to replace articles in the chapter url with articlescontent, in summary .l_chaptname>a@@articles@@articlescontent Equipped with the site. The first 'articles' can use regularity, for example, @@articles(\d+)@@$1content means to replace "articles1", "articles2", etc in the link with "1content" "2content"main>section ul>li>div>a, no need to replace the link, so after Two items(links&replace) are left blank, there are 6@ after, the content is in the meta, you need to customize the code to extract the content item of the meta-preload data, in summary main>section ul>li>div>a@@@@@@var noval=JSON.parse(data.querySelector("#meta-preload-data").content).novel;noval[Object.keys(noval)[0]].content; You can download pixiv novel with this custom code. "data" means the document of page that get, use data.body.innerText to get text if the api return is text only.