Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thlorenz/webtoink
Downloads and converts a properly set up Html book or a blog into mobi format
https://github.com/thlorenz/webtoink
Last synced: about 1 month ago
JSON representation
Downloads and converts a properly set up Html book or a blog into mobi format
- Host: GitHub
- URL: https://github.com/thlorenz/webtoink
- Owner: thlorenz
- License: other
- Created: 2012-01-23T03:52:05.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-05-17T12:25:53.000Z (over 12 years ago)
- Last Synced: 2024-11-02T01:42:01.537Z (about 2 months ago)
- Language: Haskell
- Homepage:
- Size: 547 KB
- Stars: 40
- Watchers: 4
- Forks: 7
- Open Issues: 5
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
- [Haskell Platform](http://hackage.haskell.org/platform/) (at least for now)
- [KindleGen tool](http://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000234621)## Getting started
As a good example to see WebToInk in action try converting the [Real World Haskell book](http://book.realworldhaskell.org/read/).
After cloning this repo:
cd WebToInk
cabal installcd src
runghc Converter.hs -c http://book.realworldhaskell.org/read/ -f ../booksNote: 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/.mobiFind some other online books to convert [here](./BooksToConvert.md)
## 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](https://github.com/igstan/learn-you-a-haskell-kindle) project, which
accomplishes a similar goal, except not automatically and only for one book.