- Windows 10
- Python3
- Steam app with cs2 on account
- Get steam_key for API here
- Create file
.env
and fill it like example file.env.example
- Get your steam id: help.steampowered.com or steamid.io
- Get your auth and share codes help.steampowered.com
- Create file
users.json
and fill it like example fileusers.json.example
pip install -r requirements.txt
python main.py
- Find out the last match share code using Steam API. Learn more
- Decode share code with ShareCodeWorker. Source
- Find out the url for .dem file via boiler-writter
- Download .dem and analyze it via demoparser2
- Save last share code to users.json
- ???
- PROFIT
- If a player quits the game, the script cannot understand whether he won or lost.
- Q: get_last_game_code return 412 status code
- A: Idk why this happened, but I provide fresh share_code and this works for me