I made a script that adds all LingQs to Anki

testingtesting qa Qatar

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:

September 25 at 04:44
  • Car2017 de Germany

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

    September 25 at 08:56
    • riquillers qa Qatar

      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.

      September 25 at 18:14
      • Car2017 de Germany

        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.

        September 26 at 07:01
        • riquillers qa Qatar

          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: https://ankiweb.net/shared/info/2055492159 ).

          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.

          September 26 at 09:18
          • Car2017 de Germany

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

            September 26 at 09:56
  • JoWe de Germany


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

    September 26 at 09:15
  • Administrator
    ericrobertz ca Canada

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

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


    September 27 at 16:45
    • moonseeker de Germany

      Except that button is deactivated for me, for whatever reasom

      September 27 at 18:22
      • [werral] aw Aruba

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


        September 27 at 19:00
        • moonseeker de Germany

          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.

          September 28 at 05:47
      • Administrator
        ericrobertz ca Canada

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

        September 27 at 23:19
    • riquillers qa Qatar

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

      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.

      October 07 at 06:43
  • JanFinster de Germany

    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?

    October 07 at 08:01
  • Paul_Russell us United States

    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.

    October 09 at 23:24
    • riquillers qa Qatar

      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.

      October 10 at 16:08
      • Paul_Russell us United States

        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 🇩🇪 -

        I'll try to reproduce the other error and send you a log output.

        October 10 at 16:48
        • Paul_Russell us United States

          Update: currently unable to replicate the "no data" failure.

          October 10 at 17:02
  • shorouka eg Egypt

    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

    December 17 at 06:29