WK to Flashcards Deluxe

A Python 3 script to download content from WK and output files formatted for use in Flashcards Deluxe. It also creates something akin to MCDs (see: http://learnanylanguage.wikia.com/wiki/Massive-Context_Cloze_Deletion) using example sentences and their translations sourced from Dictionary.app’s ウィズダム英和辞典 (The Wisdom English-Japanese Dictionary).

Get the script here: http://pastebin.com/PPJLJypq

Requirements:

  • A recent version of OS X. I’ve only tested this on Mavericks, but I assume it will work with older versions. The reason for this requirement is that the script pulls example sentences from the dictionary built into OS X using PyObjC.  Feel free to rewrite that function to fit your needs.
  • Flashcards Deluxe. You can get it here: http://orangeorapple.com/Flashcards/ 
  • Python 3 and the requests module. (I just started learning Python, and I got tired of fighting with encoding problems in Python 2.7)
Usage:
Copy the script from the pastebin link, paste it into a file, fire up a terminal and have at it (ex. $ python3.4 wktofcd.py)

usage: wktofcd.py [-h] [-l LEVEL] {radicals,kanji,vocabulary,mcd} …

Grabs data from WaniKani and outputs files formatted for the Flashcards Deluxe
iOS app.

optional arguments:
  -h, --help            show this help message and exit
  -l LEVEL, --level LEVEL
                        Create files for all content types of the specified
                        level

Subcommands:
  Commands to create individual files.

  {radicals,kanji,vocabulary,mcd}
    radicals            Create a radicals file of this level
    kanji               Create a kanji file of this level
    vocabulary          Create a vocabulary file of this level
    mcd                 Create an MCD file of this level
Feel free to use or modify the script as you please. I trust that you are all decent people and that you won’t try to sell it or include it in a commercial product.