A quick and dirty Bash script to create an ebook from a list of web articles.
Get a copy of the script and follow the instructions below.
- Install
wget
. - Install
Mercury Parser
. - Install
jq
. - Install
Calibre
and make sureebook-convert
is in your PATH. - A way to serve the current working directory via HTTP. I find Python's
SimpleHTTPServer
to be the simplest solution.
- Put your list of articles to compile into an ebook in a text file (one URL per line). The file should end with a newline.
- Start the HTTP server with
python -m SimpleHTTPServer
. - Run the script with
compile.sh [input file]
. - Wait for Anthology to do the right thing and generate an EPUB file in the same directory. If you want a MOBI file for your Kindle, uncomment Line 40 in
compile.sh
.
This project is licensed under the WTFPL License.
Anthology is inspired by the now-defunct Readlists by Readability.