Hacker News new | ask | show | jobs
by tjfl 1410 days ago
If you're comfortable with Python, https://github.com/kerrickstaley/genanki is amazing. You can pull your content from any source, use templates for the question and answer format, and even add media to each card (image, audio).
3 comments

I love genanki. If you create your cards such that they have an ID in the first field, you can also update them over time. This is useful for pulling from online sources whose underlying data may change over time. It's also nice when you want to update the template for previously-generated cards, perhaps to format the question/answer differently.

I use this approach in my Spotify + Anki app, described here: https://www.reddit.com/r/Anki/comments/g0zgyc/spotify_anki_l...

I recently used GenAnki for the first time to make a deck in Python and it worked really well.
Python is my daily language, i'll try that, thank you!
Another tool I've used if you have the Anki app is the Anki-Connect plugin https://github.com/FooSoft/anki-connect

It supports curl, python, javascript, etc to add cards and supports an incredible amount of actions to interact with Anki.

Example: curl localhost:8765 -X POST -d '{"action": "deckNames", "version": 6}'

I setup a crude "GUI" in Jupyter Notebook to create and manage my decks.