leech
leech copied to clipboard
Add Wordpress with TOC page to sites
Yeah, I am quite unsuccessful with writing json sites, but have realized that I often always write the same thing when it finally works.
1.) When I am looking at stories hosted on WordPress easily 90% have a TOC. In nearly all cases they use "entry-content" as a class selector and the content selectors are the same too.
So, I would like to have an own Wordpress site class where you have to be at the TOC page for it to be recognized. If it´s not a TOC page or has no content class then it should just ignore it and the User can write a json for that.
2.) Secondary there could be a 2nd wordpress site for sites where only the next chapter is given. The program could look "content" or "content-entry" and "next or next chapter" to traverse the story.
Any chance to get this? ...or any other software that does already scrape Wordpress?
I'm all for this if there is an easy way to do it, but I think there is enough variability in the html structure of TOCs on WordPress that it would be difficult to scrape all WordPress TOCs across the board and add it as a site, which is why the json files are required.
This is exactly why I wrote that " or has no content class then it should just ignore it and the User can write a json for that." I have now looked through ~20 Wordpress story sites and ~15 of them work exactly as I described. They have a TOC and the content is under content and content-entry. There could be a class for this case and if the class does not find anything like that it will just return nothing and the user will have to write his own json config.
It might not match everything, but it still would reduce the need to write config files.