Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.
/ CS2Rank Public archive

Get players rank in cs2 by auth and share codes

Notifications You must be signed in to change notification settings

Xoma163/CS2Rank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CS2Rank

Get players rank in cs2 by auth and share codes

Requirements:

  1. Windows 10
  2. Python3
  3. Steam app with cs2 on account

QUICK START

  1. Get steam_key for API here
  2. Create file .env and fill it like example file .env.example
  3. Get your steam id: help.steampowered.com or steamid.io
  4. Get your auth and share codes help.steampowered.com
  5. Create file users.json and fill it like example file users.json.example
  6. pip install -r requirements.txt
  7. python main.py

How it works?

  1. Find out the last match share code using Steam API. Learn more
  2. Decode share code with ShareCodeWorker. Source
  3. Find out the url for .dem file via boiler-writter
  4. Download .dem and analyze it via demoparser2
  5. Save last share code to users.json
  6. ???
  7. PROFIT

Known bugs

  1. If a player quits the game, the script cannot understand whether he won or lost.

FAQ

  • 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

About

Get players rank in cs2 by auth and share codes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages