Code Monkey home page Code Monkey logo

kindle-to-anki's Introduction

Kindle-to-Anki

Import from kindle vocabulary to anki-ready csv file. Uses LingvoLeo service to get translataion, transcription, pronounciation and some image.

Find all lookups (words you've been looking for while reading Kindle) and contexts. Retrieve translations from LinguaLeo, export to csv file.

Take first three translations for each word.

Written in Python3.

Usage

usage: export.py [-h] [--kindle KINDLE] [--src SRC] [-m MEDIA_PATH] [-o OUT]
                 [-s SKIP]
                 email pwd

positional arguments:
  email                 LinguaLeo account email/login
  pwd                   LinguaLeo account password

optional arguments:
  -h, --help            show this help message and exit
  --kindle KINDLE       Path to kindle db file (usually vocab.db)
  --src SRC             Path to plain text file with newline separated list of
                        words
  -m MEDIA_PATH, --media-path MEDIA_PATH
                        Where to store media files (sounds/images)
  -o OUT, --out OUT     Output filename

Use --kindle switch to export from recent Kindle lookups. Use --src switch to export from plain text file.

It should be formatted as follows:

word1 context1
word2 context2
...
wordN contextN

Word and context are splitted by space. So, first occurence is word and remaining is context.

When using Kindle as input last timestamp is written to ~/.kindle. During next import only new lookups are exported. One can manipulate value written to ~/.kindle to get only needed words from Kindle.

kindle-to-anki's People

Contributors

rampage644 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ashang

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.