-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please add site https://old.ranobelib.me/ #1580
Comments
Looking at the HTML, the list of chapters is almost certainly in the <script> element which starts with I think the URL for each chapter is taken using the "volume" and "number" members to make part of the chapter's URL. A recent chapter is https://old.ranobelib.me/old/80001--this-marriage-is-bound-to-fail-anyway/read/v3/c478 Which has number of 478, volume of 3 and name of "Экстра 6", Although I'm not quite sure how to create the title in the list. I think it's something like Volume X, Chapter Y, Title Z, in Russian. Can probably use something like this to extract the JSON let startString = "window.__CONTENT__ = ";
let scriptElement = [...dom.querySelectorAll("script")]
.filter(s => s.textContent.includes(startString))[0];
return util.locateAndExtractJson(scriptElement.textContent, startString) And then construct the table of content entries. Notes |
@dteviot you could use "[placeholder]" |
Hello. Thank you very much for the response. I apologize for taking your time again, but I and programming are not always compatible(((
I cannot understand where I made a mistake... `"use strict"; //dead url/ parser class oldranobelibParser extends Parser {
` |
@DEATHAN-SAA i would guess that you forgot an closing bracket "}" at the end. and 3 ` at the end.)
|
Hello.
Apologies if my English is not perfect.
I'm working with this ↓
Hostname: https://old.ranobelib.me/
CSS Selector for the content: .reader-container
CSS Selector for Title of Chapter: div.reader-header-actions:nth-child(3) > div:nth-child(2) > div:nth-child(2)
Provide URL for web page that contains Table of Contents (list of chapters) of a typical story on the site
https://old.ranobelib.me/old/manga/80001--this-marriage-is-bound-to-fail-anyway?ui=6032§ion=content
I cannot understand why it does not find the first chapter.
Not all chapters are displayed at once - its maximum is 72 chapters, if you scroll down the list of chapters in advance.
In this case, I scrolled down a little and found only up to chapter 43.
When the story is only 60 chapters, it's not a problem, but for more than that, you have to scroll through the table of contents each time. Stopped at chapter 43 - then you need to scroll to about +24 and click on WebToEpub again. Copy the new links and paste them into the previous WebToEpub window to get all the chapters of the story. And if you scrolled further, for example, to chapter 78 - then WebToEpub will start from chapter 50. You'll have to go back to the table of contents and scroll the mouse wheel again to get chapters 44 to 49 by clicking on WebToEpub.
If a story has over 300 chapters, it becomes very tiring... And WebToEpub can easily skip a chapter somewhere in the list when scrolling. Therefore, you have to check the number of chapters using Excel every time.
Unfortunately, I still haven't figured out how to create new parser. :(
Thank you very much for WebToEpub!
I will be grateful to you for the answer.
The text was updated successfully, but these errors were encountered: