This project is a tool to scrape League of Legends abilities from the mobafire database, as well as turning those abilities into flashcards in a file that can be imported into Anki.
- Find your Anki collection directory and paste it into
ANKI_COLLECTION_PATHin main.py. - Install chromedriver and paste the path into
CHROMEDRIVER_PATH. - (optional) Change the filename in the variable
FILENAME.
To run the script simply run:
python main.py
You can also import the included abilities.txt as a demo. It was generated a couple months ago, so may not be up to date with mobafire.
Each card is tagged and can be searched for in anki. There are two types of cards right now, one for cooldowns, and one for ability description.
You can sort and suspend the type you don't want to review.
The tags are:
-
cooldown -
ability
It's easy to add questions, just go to the end of the file and copy/edit the format I used for the above question types.
Open Anki and go to File > Import then select the text file with the
exported abilities.
Change the deck in the top right of the import screen, either select an existing one or create a new one.
You're ready to go! You can start memorizing abilites now.