Skip to content

Instantly share code, notes, and snippets.

@wnim
wnim / wanikani_vocab.py
Created August 31, 2025 14:54
Wanikani get Guru'd words to plan text (without ~ symbol or roman numerals)
import requests
import re
import sys
# Replace this with your actual WaniKani API token
API_TOKEN = "<USER-API-TOKEN>"
# Check if the user forgot to set their token
if API_TOKEN == "<USER-API-TOKEN>" or not API_TOKEN.strip():
sys.exit("❌ ERROR: Please edit the script and put your WaniKani API token into API_TOKEN before running.")