Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
/ yomou2ebook Public archive

Convert novels from 小説を読もう into a txt and epub format

License

Notifications You must be signed in to change notification settings

VRichardJP/yomou2ebook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yomou2ebook

小説を読もう (https://syosetu.com/) is a Japanese website that publishes novels for free. It is possible to read novels online and to download them as a pdf. However, it is not possible possible to download the novels as a epub or text file. This is very incovenient as the pdf file cannot be converted easily into another format. It is even more annoying that most ebook readers won't be able to read the file properly.

This script is meant to solve the issue: it will download a whole novel from the website as a text file and convert it to the epub format.

Requirements

Tested on Linux, but it should also work on Mac OS. For Windows, please install and use a Windows Subsystem for Linux (or equivalent)

Extra requirements:

  • pandoc: to convert txt -> epub

How to use

Usage is as follow:

./yomou2ebook.sh <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.sh http://ncode.syosetu.com/n6316bn

An output.txt file will be created, then converted into an output.epub file example

Limitations

Not supported (yet):

  • furigana

Troubleshoot

I only tested this script on a few novels. I cannot garantee it will work on all of them. Also, the script may stop working overnight if the website gets an update. If you have any trouble feel free to open a new issue.

Similar projects

About

Convert novels from 小説を読もう into a txt and epub format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages