Skip to content

Instantly share code, notes, and snippets.

View stefan-home's full-sized avatar

stefannn stefan-home

View GitHub Profile
@stefan-home
stefan-home / HyundaiTokenTerminal.py
Last active December 11, 2025 18:27
Get token for Hyundai api using headless terminal
#Tool to extract token for hyundai api authorization
# - Can use on any terminal without GUI (like SSH on remote computer).
# - Run with python. Tested with python3.9. Only requires packages "request and sys" (very common).
# - Start script as: python3 HyundaiTokenTerminal.py.
# - Script is self explaining. It provides some url's to paste into the address-bar of a browser on your main computer and requires you to paste back the response in the script. Script finalises with providing refresh-token (to be used as password in the api) and access-token (not necessary to use).
# - Be sure to set the user-agent of the browser as per instruction of the script. Without correct user-agent the script does not work.
import requests
import sys