A simple Python script to convert lists of vocabularies to AnkiWeb cards. Words definitions are query from Oxford dictionaries API.
- Clone or download this repository.
- Obtain
APP KEY
andAPI KEY
from Oxford Dictionaries API website. Note: Free tier can query 1,000 request/month - Modify
credentials.py
and put yourAPP KEY
andAPI KEY
in it. - Prepare words/vocabularies files. Each line must contains only one word. Non-alphabet such as spaces, dashes, numbers are acceptable. This script will strip it out anyway.
- Run the script, it requires two options which is input file name and output file name respectively.
oxford2anki.py -i <inputfile> -o <outputfile>
- Import output file to Anki, match it to your word and meaning field and voilĂ !
If you still unsure how it works, hopefully this video will help you.
Cards that are generated by this script will include every definition from the homograph of the word, lexical catagory, sense, subsense and example.