Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Converts LessWrong blog posts and sequences into ebook format.

branch: master

Merge pull request #1 from SohumB/bugfix

Fixing same-slug bug and post-overwriting bug
latest commit 3f06c3a3ff
Dave S authored March 29, 2012
Octocat-spinner-32 README.md Added setup instructions. January 07, 2011
Octocat-spinner-32 logo.png Initial commit. December 03, 2010
Octocat-spinner-32 lw2ebook.rb Merge pull request #1 from SohumB/bugfix March 29, 2012
Octocat-spinner-32 sequence.rb allow setting authors March 29, 2012
Octocat-spinner-32 urls.txt Polishing it up. December 03, 2010
README.md

Features

  • Supports all formats that calibre supports (that would be: epub, fb2, oeb, lit, lrf, mobi, pdb, pml, rb, pdf, snb, tcr, and txt)
  • Downloads interlinked articles
    • and adds links to them in the ebook
  • Downloads images
  • Caches articles, so that they are not loaded twice.
  • A (hopefully) friendly API

Usage

Before running, install calibre and point Path_to_ebook_convert in lw2ebook.rb to wherever ebook-convert is on your machine.

To convert http://lesswrong.com/lw/4g/eliezer\_yudkowsky\_facts/ to an epub:

ruby lw2ebook.rb epub http://lesswrong.com/lw/4g/eliezer_yudkowsky_facts/

To convert the Zombies sequence into a mobi:

Add the URLs mentioned here to urls.txt then run:

ruby sequence.rb mobi "Zombies"
Something went wrong with that request. Please try again.