GithubHelp home page GithubHelp logo

rioaraki / kindle_maker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jachinlin/ebook-py

0.0 1.0 0.0 16.9 MB

a tool to make mobi-format file wich could be load into Kindle

Python 96.26% HTML 3.74%

kindle_maker's Introduction

Kindle ebook making

travis codecov

kindle_maker is a Python tool which, given a set of html files and a plain text file with toc message, creates a MOBI file that you can directly use on you Amazon Kindle (or any other device that supports MOBI documents).

Want to see what it looks like? Take a look at examples!

Requirements

  • A working Python 3 environment (tested on OS X + Python 3.7 + Virtualenv and other platforms on travis).
  • Amazon's KindleGen binary (Just do nothing while I have downloaded it for you)

Installation

  1. (optional) Source your virtualenv.
  2. pip install git+https://github.com/jachinlin/kindle_maker.git

Usage

  1. prepare html files and a toc.md file in a source dir.
  2. write a script
from kindle_maker import make_mobi

source_dir = 'put the source dir here'
output_dir = 'where you want to put the output mobi file'
make_mobi(source_dir, output_dir)

  1. or call in a command-line tool
make_mobi <source_dir> <output_dir>

This will create a <title>.mobi in <output dir>. You can now transfer this file to your device.

Example

see examples at examples.

License

Have fun.

kindle_maker's People

Contributors

jachinlin avatar panhaoyu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.