Quote:
Originally Posted by bugstomper
...
Or is there already an adapter for locally stored books in some defined format?
|
I had to stop and think about it for a while, but in point of fact, there is!
FanFicFare has a fake site, test1.com, that I use to generate stories with different attributes without needing to hit anyone's site.
The test1.com adapter has a
teststory feature where you can construct whatever metadata you like with storyId >= 1000.
And at one point, for my own purposes, I extended that feature to also have a 'chapter_urls' setting that will pull a page from a URL for each chapter (which can be a file:// URL) and look for a <blockquote> tag inside it. The blockquote will be changed to a div (because reasons), and it and everything inside it will used for the chapter text.
personal.ini section:
Example chap01.html (Use UTF8 if encoding needed.):
Then, after setting personal.ini and creating the chapter files, give FanFicFare the story URL: http://test1.com?sid=1000
Warning:
This is an existing undocumented feature. I have no issues with someone who can write their own page scrape scripts using it--something bugstomper specifically mentioned being able to do.
But I'm not going to be interested in expending much energy on either enhancing or supporting it. It's a dev tool for my use.