2.2 KiB
2.2 KiB
Anki Pokemon flashcards generator
Context
Wanting to learn the Pokedex using flashcards on Anki I haven’t found decks which were convenient for my usage therefore I created a handy script that scrap Pokemon pictures and then format a csv file which is easily importable into Anki.
Procedure and usage
This script will download every Pokedex entry for a given generation. It scraps Pokemon Trash website which only contains entries from 1st to 7th generation but contains good quality Pokemon PNG pictures. Then, strings are formatted and written to a csv file that you’d then import into Anki.
Warning
|
Based on its nature, scrapping is not guaranteed to work in the future. Also, this script retrieves french Pokemon names. |
usage: pokemons_to_anki.py [-h] -g GENERATION [-p IMAGES_PATH] [-f FILENAME]
optional arguments:
-h, --help show this help message and exit
-g GENERATION, --generation GENERATION
<int> Generation to retrieve <1-7>
-p IMAGES_PATH, --images-path IMAGES_PATH
Where to store Pokemons pictures, default to ./Pictures
-f FILENAME, --filename FILENAME
Name of CSV produced in output, default to output.csv
CSV Output and flashcard example
<img src="252.png"><br>N°252 ;Arcko
<img src="253.png"><br>N°253 ;Massko
<img src="254.png"><br>N°254 ;Jungko
<img src="255.png"><br>N°255 ;Poussifeu
<img src="256.png"><br>N°256 ;Galifeu
<img src="257.png"><br>N°257 ;Braségali
<img src="258.png"><br>N°258 ;Gobou
<img src="259.png"><br>N°259 ;Flobio
<img src="260.png"><br>N°260 ;Laggron
<img src="261.png"><br>N°261 ;Medhyèna
<img src="262.png"><br>N°262 ;Grahyèna
<img src="263.png"><br>N°263 ;Zigzaton
<img src="264.png"><br>N°264 ;Linéon
<img src="265.png"><br>N°265 ;Chenipotte
<img src="266.png"><br>N°266 ;Armulys
<img src="267.png"><br>N°267 ;Charmillon
<img src="268.png"><br>N°268 ;Blindalys
<img src="269.png"><br>N°269 ;Papinox
<img src="270.png"><br>N°270 ;Nénupiot
<img src="271.png"><br>N°271 ;Lombre
<img src="272.png"><br>N°272 ;Ludicolo
...