Home

Awesome

ankigenbot

@ankigen_bot, Telegram bot to automatically generate and upload anki cards to ankisrs.net.

Anki is a very effective program to learn vocabulary, but anki does not have any way to generate cards automatically. Given a word in English, Spanish, French, German or Italian this bot will send you definitions with sentence examples and with a tap you can add them to your anki deck.

Anki + @ankigen_bot is the best way to learn vocabulary: Send the bot every word you do not understand when you are reading, studying or interacting with people, it will not take you time and anki will make sure you do not ever forget all those words.

Features


If you want @ankigen_bot to support another language, you can open an issue and point me to a hopefully nice, free and simple dictionary for that language.

image3

Write a word and select the definitions you want

<img src="https://github.com/damaru2/ankigenbot/blob/master/.assets/image1.png" width="650"> <img src="https://github.com/damaru2/ankigenbot/blob/master/.assets/image2.png" width="650"> <img src="https://github.com/damaru2/ankigenbot/blob/master/.assets/image4.jpg" width="450">

Installation

For executing this code, you will need to have:

pip3 install sqlite3 selenium python-telegram-bot pronouncing
git clone https://github.com/damaru2/ankigenbot
cd ankigenbot
mkdir data log
echo "token_id = '<your_bot_token_id>'" > ./src/private_config.py
echo "chrome_binary_location='/usr/bin/google-chrome'" >> ./src/private_config.py

Once everything is installed you can run the bot from the root directory:

python3 src/ankigen_bot.py