Choose one listed below as your package manager:
pip install 'git+https://github.com/xr1s/gsz'uv add 'git+https://github.com/xr1s/gsz'pdm add 'git+https://github.com/xr1s/gsz'poetry add 'git+https://github.com/xr1s/gsz'This script prints achievements from game data.
python3 achievement.py --base ../TurnBasedGameData --e-hkrpg-token @secret-file.txtFor example, to list achievements under the series “众秘探奇”:
python3 achievement.py --base ../TurnBasedGameData --e-hkrpg-token @secret-file.txt --series 众秘探奇The e_hkrpg_token is required for authentication. You can retrieve it from the Mihoyo Cultivation Tool by inspecting the cookies in your browser.
You can provide the token in two ways:
Directly as a command-line argument:
python3 achievement.py --base ../TurnBasedGameData --e-hkrpg-token YOUR_TOKENVia a file (recommended for security): save the token in a file and reference it with @:
python3 achievement.py --base ../TurnBasedGameData --e-hkrpg-token @path/to/token-fileUsing a file prevents the token from being exposed in your shell history.