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).
I use this approach in my Spotify + Anki app, described here: https://www.reddit.com/r/Anki/comments/g0zgyc/spotify_anki_l...
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.