Okay, well, attempting to do the sandbox has been fun.
I think I've got some working code, but there are a couple of weird parts. I couldn't find colours for Adiva, Ajzira, armokGoB, Calima, Ceitfianna, ChristyHotwater, Eva, Liz, Lynette, Unbitwise, or Zack. Also, I had to manually code quite a few characters to their author (and I'm not sure how well I did - I mostly guessed from "Oh, it's Alicorn and [X], and Alicorn's characters are all under the belltower (I hope), so it's [X]). If these could be put into author collections (especially where there are collections available, but characters aren't in them, or where there are many characters), it'd probably be easier to maintain this, but it's not like it matters too much provided nothing changes too much.
In case anyone wants to know the hardcoded moieties:
Adelene has "lurkingkobold" and "of-all-trades"
Adiva has "gothamsheiress"
Aestrix has "poll-the-stars" (I think this was a "pixiethread" or something?)
Ajzira has "lost-in-translation"
AndaisQ has "fortheliving", "quite-enchanted", "andomega", "in-like-a", "hemomancer", "white-ram", "power-in-the", and "strangely-literal"
armokGoB has "armokgob"
Benedict has "unblinkered" and "penitencelost"
Calima has "tenn-ambar-metta"
Ceitfianna (Fi?) has "balancingminds"
ChristyHotwater has "slgemp141"
ErinFlight has "erinflight", "midst-of-threads", "intricate-engineer", "between-worlds", "define-exist", and "probability-of-here"
Eva has "kaolinandbone" and "evesystem"
kuuskytkolme has "can-i-help", "can-i-stay" and "can-i-go"
Link has "meletiti-entelecheiai"
Liz has "sun-guided"
Lynette has "darkeningofthelight" and "princeofsalem"
MarriNikari (Marri?) has "revivificar"
Maggie has "maggie-of-the-owls", "whatamithinking", "iamnotpolaris", "amongstherpeers", and "amongstthewinds"
Nemo has "magnifiedandeducated", "connecticut-yankee", "unprophesied-of-ages", "nemoconsequentiae", "wormcan", and "off-to-be-the-wizard"
Rockeye has "witchwatcher", "rockeye-stonetoe", "sturdycoldsteel", "characterquarry", and "allforthehive"
Unbitwise has "unbitwise", "wind-on-my-face" and "synchrosyntheses"
Zack has "intomystudies"
I'm also using the following communities as "collections" of characters:
Kappa ~
http://binary-heat.dreamwidth.org/profile
Alicorn ~
http://belltower.dreamwidth.org/profile
Aestrix ~
http://aestrices.dreamwidth.org/profile
Anthusiasm ~
http://anthusites.dreamwidth.org/profile
AndaisQ ~
http://andis-angels.dreamwidth.org/profile
MarriNikari ~
http://marriminions.dreamwidth.org/profile
Lambda ~
http://lambda-parentheses.dreamwidth.org/profile
PDV (PlainDealingVillain) ~
http://bettertomorrow.dreamwidth.org/profile
If any of these are incorrect, please notify me so I can fix the moiety in the script. Also, if you know of any preferred colours for the uncoloured writers, please let me know so I can add those. If you notice any colours that are too similar (due to how I modified them), it'd help if you pointed them out, and maybe a suggestion for what would be better...
It's actually quite weird to follow some of the links when they refer to just certain threads of an entry, but I think I've made the script handle that properly and replicate the applicable part into the epub. Full copies of the entries aren't available, I'm afraid, since that would involve duplication or lots of rewriting so that I can link to sections of chapters before they've been posted. Links within the epub (excluding the ToC, which will work) won't point to the right part of the epub, but will probably link to the online website. Images should work and be embedded, provided they've been put into the body of a comment or entry as an image tag (and not as a link).
Unfortunately the code seems to have problems downloading entries that are marked "discretion advised" - I've tried to get around it, and I won't be sure if I've succeeded until I look at the generated file, but yeah. This applies to
Aegis & Charles (with Fi), and probably others.
Here's the code:
https://www.dropbox.com/s/143vl8l815hyh ... x.zip?dl=0
I'm just generating the epub, then I'll upload it and share a link here. I'm not sure how often I'll update it (I'll try to do it quite often), but it should at least be a copy of the sandbox at this stage (using
this page as the table of contents from which it retrieves posts - currently ignoring any "many worlds" forum links; they'll be added later). I've also got to make it carry across the bolding that represents "has concluded". Yeah. Basically, this will be a preliminary, hopefully-works-decently version.
Edit: Uploaded! Here it is:
https://www.dropbox.com/s/mq6jl58t7ii5u ... .epub?dl=0