A lot of the statistics sites use either API v1 or didn’t have the graphs I want. The solution to this is, of course, was to write a script to scrape the Wanikani API V2 and get a spreadsheet that doesn’t limit what I can do with it.
Wanikani PyStats is a python script that scrapes the wanikani API and generates quite comprehensive semicolon-limited CSV-file you can load into your favorite spreadsheet software. You can use it however you want to visualize your data, see how bad or well your accuracy has been doing or even compare different statistics to an another one.
To save the poor WaniKani’s servers, the script will retrieve all of the subjects when you run it for the first time and then cache them into a subjects.csv file. If you remove the file or the script realizes there’s something wrong with it, it will be redownloaded.
There was a small bug in calculating the total reviews but that is now fixed. I also added a warning to inform you if the API key is not entered. Please download the latest version to have correct stats!
Affected columns were “Total reading reviews”, “Total Meaning Reviews” and “Total review number”. It is however suggested to replace all of the previous rows to fix any inaccuracies that might have occurred.
The script is not working for me today.
It keeps reloading the subjects. After reaching 100% it says
Error reading the subjects, redownloading from the server.
and it enters an infinite loop.
If I prevent the looping the subjects.csv looks okay:
$ ls -l subjects.csv
-rw-rw-r-- 1 jean jean 214186 Sep 11 09:20 subjects.csv