This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.") |