https://syosetu.com is a Japanese website where aspiring and hobby authors publish their books for free. Unfortunately, they do not offer e-book downloads, only online reading and PDF downloads, which makes reading the books on an e-reader somewhat obnoxious.
To solve that problem, this script will automatically download and convert novels from syosetu.com into epub or kepub for you.
- Python 3.x
- Pandoc: to convert .md -> .epub
- Kepubify: to convert .epub -> .kepub.epub (only needed for Kobo kepub support)
./yomou2ebook.py <main_url>
Where <main_url>
is the url of the main page of the book, for example:
http://ncode.syosetu.com/n6316bn
For example, to download 転生したらスライムだった件 (http://ncode.syosetu.com/n6316bn), simply run:
./yomou2ebook.py http://ncode.syosetu.com/n6316bn
Both a 転生したらスライムだった件.md
markdown file and a 転生したらスライムだった件.epub
file will be generated. The latter file should work on all e-readers that support .epub format.
You can optionally pass the -k
flag to generate a Kobo kepub file instead:
./yomou2ebook.py -k <main_url>