Risto_Saarelma comments on Print ready version of The Sequences - Less Wrong

14 Post author: Jordan 06 November 2010 01:21AM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (31)

You are viewing a single comment's thread. Show more comments above.

Comment author: Risto_Saarelma 08 November 2010 09:59:05AM *  1 point [-]

I've had success turning texts in various formats into EPUB files using Calibre.

ETA: Tried Calibre for making an ebook of the scrapings. Downloaded each sequence file, plus the index html, into the same directory. Modified index to point to local files instead of fully qualified URLs. Pointed Calibre at the index file, and it slurped the actual sequence files nicely. Resulting epub looks fine, corresponds to a 1300 page physical book and includes the inline images.

Comment author: Risto_Saarelma 10 November 2010 09:12:44PM *  1 point [-]

Made a script to do this.

Install the prerequisites: apt-get install wget calibre tidy, or whatever works on your favorite OS.

Then do

#!/bin/bash

TMPDIR=$(mktemp -d)
pushd $TMPDIR
wget -H -np -nd -k -p -r -l 1 http://pwnee.com/Sequences/list.html
tidy -m *.html
ebook-convert list.html lesswrong.epub
popd
cp $TMPDIR/lesswrong.epub .