Auto-Generated Anki Deck
This was my first independent coding project. I was learning Japanese and using a flashcard software called 'Anki' to help remember words I found. The problem was that making each card manually took on average 2 minutes (I timed this), and since I needed several thousand of these if I wanted to reach fluency, making these would take me several hundred hours. Specifically, I was aiming for 10k, and I was at 3K at the time, so 7K*2/60 = ~230 hours.
To ease this process, I wrote a Python program that would automatically generate cards in the format that I wanted based on a list of 10K words sorted by frequency. It would connect to the public APIs of an online Japanese dictionary and an example sentence website, retrieve data on a particular word, parse it, then print it into a csv file. Anki would then read the csv file and generate the cards.
The program took several hours to execute and crashed multiple times, so it was not really optimally written, but it got the job done. Python was probably not the best language to use as it was quite slow.
What I learnt:
- Python: basics, how to open files, how to write to files, how to interact with JSON.
- APIs: what they are and how to interact with them, what a JSON is.