Quote:
Originally Posted by oenwolf
Bit of a strange request. I have a bunch of ao3 HTML files. The author deleted his stories from the ao3 website, but before deleting he downloaded his stories in the html format, which he provides as an archive.
I'd like to convert them to EPUBs, formatted in the classic FanFicFare way. Is there a way I can feed the html files to fanficfare and have it convert them for me? Maybe through the CLI?
If the code needs to be modified, I'm decent at coding, so if you could provide even a brief roadmap, I'll try my hand at it.
|
There is a way using the [teststory] development feature which is implemented in fanficfare/adapters/adapter_test1.py
Example:
Code:
[teststory:1000]
## Add additional sections with different numbers to get different
## parameters for different story urls.
## test1.com?sid=1000
# note the leading commas when doing add_to_ with valid_entries and *_list
add_to_valid_entries:,favs
title:Testing New Feature {{storyId}}
author_list:Bob Smith
authorId_list:45
authorUrl_list:http://test1.com?authid=45
datePublished:2013-03-15
dateUpdated:2013-04-15
numWords:1456
favs:56
series:The Great Test [4]
seriesUrl:http://test1.com?seriesid=1
rating:Tweenie
category_list:Harry Potter,Furbie,Crossover,Puella Magi Madoka Magica/魔法少女まどか★マギカ,Magical Girl Lyrical Nanoha
genre_list:Fantasy,Comedy,Sci-Fi,Noir
warnings_list:Swearing,Violence
characters_list:Bob Smith,George Johnson,Fred Smythe
chapter_urls:
file://....,Chapter 1 Title
file://....,Chapter 2 Title
file://....,Chapter 3 Title
I'm away from computer for a lot of this week, FYI.