Skip to content

OneWhoFrogs/lw2ebook

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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"

About

Converts LessWrong blog posts and sequences into ebook format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages