Downloads and converts a properly set up Html book or a blog into mobi format
Haskell JavaScript Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Readme.md

Web to Mobi converter

Given a url to an online book or a blog it will convert it into proper mobi format to be read on the kindle.

Requirements

Getting started

As a good example to see WebToInk in action try converting the Real World Haskell book.

After cloning this repo:

cd WebToInk
cabal install

cd src
runghc Converter.hs -c http://book.realworldhaskell.org/read/ -f ../books

Note: at this point the KindleGen tool will have to be run manually, in the future this will be part of the automated process.

cd ../books/Real\ World\ Haskell/
kindlegen book.opf -o Real\ World\ Haskell/.mobi

Find some other online books to convert here

How it works

  • pulls down all html pages, images and css files
  • arranges them in proper folder structure and generates book.opf and toc.ncx files
  • runs KindleGen tool in order to generate the mobi file
  • sample folder structure and generated files can be found at the Learn You a Haskell project, which accomplishes a similar goal, except not automatically and only for one book.