These are scripts for creating an ebook of the web novel Mother of Learning by nobody103 (Domagoj Kurmaic). To run this you need Linux (I run Arch Linux) or something fairly similar -- I guess it would work in OSX, it'll probably work in cygwin environments like mobaXterm or Babun and most certainly will work on WSL (the ubuntu-on-win10 thing).
The output is intended for use as an input file on Calibre, which will create an ebook file in whatever format you like. You'll probably want to tune the conversion so that it adds <h1>
and <h2>
header tags to the book's table of contents. I update dl.sh
when a new chapter is released and upload a release, if you just want the ebook it's easier to grab that.
You can find a list of the Reddit discussion threads related to the novel on this reddit post (most are from r/noveltranslations and r/rational)
This is published with permission of the novel's author, the repository will be taken down if that permission is ever rescinded.
- bash
- standard linux userland tools:
- sed
- tr
- curl (you may need to install this one)
- python 2 (
chapextract.py
calls/usr/bin/python2
, check if your python 2 binary is somewhere else) - uses python 2 libs:
- bs4 (also known as "beautiful soup", you may need to install this one)
- sys
- locale
- unicodedata
- re
dl.sh
downloads the chapters (I'll update it once in a while to get the newer stuff, check before using just in case)chapextract.py
converts each chapter's raw HTML into a nice and clean chunk of HTMLbuild.sh
gets outputs everything together in a single file
bash dl.sh
bash build.sh