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)
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 DeluxeiOS app.optional arguments:-h, --help show this help message and exit-l LEVEL, --level LEVELCreate files for all content types of the specifiedlevelSubcommands:Commands to create individual files.{radicals,kanji,vocabulary,mcd}radicals Create a radicals file of this levelkanji Create a kanji file of this levelvocabulary Create a vocabulary file of this levelmcd 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.