I made a script that adds all LingQs to Anki

Title says it all pretty much.
I think LingQ is good for reading and listening, but the flashcard system here isn’t great. So I wrote some code that pulls up all your LingQs using the LingQ API and adds them to Anki as notes using an Anki plugin called Ankiconnect

You can find it here if your’re interested: GitHub - squivix/LingQ-to-Anki: A script that pulls all LingQs from LingQ and adds them to Anki as flashcards


That’s great, but when I try to type in my password, nothing happens.

It hides your password, but it is typing. I couldn’t find a way to do the whole star thing. So just type blindly and press enter.

I see, thanks. Is there a way to check if all the words were imported? The window disappeared all of a sudden, but it can’t have imported all of the words.

is this program working just in windows? Because there is a main.exe file ti suppose that …

1 Like

It didn’t add them then. Make sure Anki is installed, running(with your profile selected) ,and you have the Ankiconnect plugin installed(you can find it here: AnkiConnect - AnkiWeb ).
If it works, it will ask you for the deck, the module, and which fields to put what information in. Then you’ll see the LingQs imported one by one.

Sorry for the user-unfriendly interface btw. I’m gonna add a GUI soon.

I did add something, but after a while, the window was just gone.

You can already do this using LingQ’s export feature. I’ve attached an image that shows you how :slight_smile:

Desktop, go to your Vocabulary tab → choose at least 1 of your saved words → the more actions tab will appear → export



Except that button is deactivated for me, for whatever reasom

You have to select some LingQ’s to use the export button

You have to select a word in the checkbox, then the button will show.

1 Like

Thank you. Still does not work though… i can dowload, yes. But whenni open in Anki, it does not open in any deck… ah well… no problem i guess.

Oh I did not know that. Now I feel like I wasted my time :confused:

Anyway, the code is there in case LingQ’s export feature doesn’t work for some people. I might edit it to allow more customization. Thanks for letting me know I guess.

1 Like

This is great! Is there a way to export all your lessions as text (.txt) into a text file. I would love to do so to do some statistics on word frequencies, etc?

1 Like
  1. If your Anki deck names have emojis (I used flags for languages) this tool will exit without importing. Workaround is to delete the emojis.
  2. Tool will not allow selection of the last deck in the list.
  3. Tool will fail if you try to import a field with no data.

Thank you for the feedback. Sorry for my armature programming :‑/ I’ll fix the bugs as soon as possible.
EDIT: I fixed the second problem, but I could not recreate the first. I tested with a deck that had emojis in the title and it worked just fine. It imported the LingQs and all of that so I have no idea what’s wrong.
I don’t know what you mean by “Tool will fail if you try to import a field with no data.” Do you mean if you choose ''Keep this field empty" or if you import from LingQ and it returns nothing? Either way I tested it and it worked so again I’m confused.
In any case thank you.

No problem. Much thanks for your script!!
I posted the output with the emoji on your GitHub. The emoji I had in the deck titles was :de: - 🇩🇪 Flag for Germany Emoji
I’ll try to reproduce the other error and send you a log output.

Update: currently unable to replicate the “no data” failure.

First of all, thank you so much for developing and sharing this. I’m new to lingQ but I already know this is gonna be my favorite platform but still, the way I design and structure my Anki flashcards is way better than the ones here. So, I see this script is super super helpful.
I couldn’t use the windows app as the screen kept disappearing after connecting to Anki. However, it worked perfectly fine when I just run the python script. so, Thanks again