A simple command line tool that downloads fiction from Royal Road as html. Use Calibre to convert html to any desired format.
java -version
)java -jar royalroad-downloader-assembly-VERSION.jar https://royalroadl.com/fiction/...
(replace royalroad fiction URL with your link and VERSION
with the corresponding number) Run java -jar royalroad-downloader-assembly-VERSION.jar --help
to see the full usage reference.
It may happen that RoyalRoad changes its html format and this parser is no longer working.
In that case please create an issue.
You may also try to work around the problem by overriding CSS selectors
that are used to fetch chapter title and body by supplying -t
and -b
program arguments.
Default css selectors are:
title
for the titlediv.chapter-content
for the chapter bodyRun the program with --help
argument to see the usage reference.
sbt/sbt assembly
in the project directoryNote: build tested to work only with Java 8 (will probably fail on other versions).
run sbt/sbt --error 'run <arguments>'
in project directory,
i.e.:
sbt/sbt --error 'run --help'