Convert your Amazon Kindle clippings to Anki cards (one deck per book) and easily import them.
Built with Python 3.8
for Anki 2.1.48
.
The following steps will guide you through the process to get a local copy up and running.
You must have the following to run the project:
- Clone the repo
git clone https://github.com/aziule/kindle-to-anki.git
- [Optional] Create a Python virtual env and activate it
- Install pip requirements
make req-install # OR python -m pip -r requirements.txt
There are two steps to convert your clippings to Anki cards:
- Convert your clippings to Anki packages (
*.apkg
files) using this project - Import the packages to Anki and reorganise the cards
- Connect your Amazon Kindle via USB
- Find the file named "My Clippings.txt" in your Amazon Kindle
- From the project's root directory, using your terminal, run:
# Note: replace the path to My Clippings.txt python ./cli.py --clippings=My\ Clippings.txt
The packages will be located in the gen
directory of the project.
You should see something like this:
First, you need to open Anki:
- Open Anki
- Create a new profile or choose an existing one
- Open it
Then, for each book, you will need to repeat the following:
- Click "Import File"
- Head to the project directory, under the
gen
folder - Select the
*.apkg
file you would like to import and import it - Check the database (Tools > Check Database)
- The cards should be visible in the "Browse" tab
You should see something like this:
That's it! All your clippings are now in Anki, ready to be further dealt with.
- By default, Anki will import the cards to the Default deck. If you want to split them per book,
I recommend that you assign them to the deck you desire before importing the next
*.apkg
. Otherwise it might be tricky to find when the first deck's cards end and when the next one's start. - You need to check the database after each import.
Distributed under the MIT License. See LICENSE.txt
for more information.