Skip to content

cryptodescriptor/cs-case-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CS:GO / CS2 Case History Logger

This script tracks your case openings in CS:GO and CS2 and prints stats about skins, rarities, and special drops (Classified, Covert, Contraband, Extraordinary gloves).

It generates a CSV log (case_openings.csv) and prints colorful output in the terminal.

Example Output


⚠️ Important Notes

  • Windows Users: Use Command Prompt, not PowerShell. PowerShell does not handle ANSI colors correctly.
  • Steam Cookies: You need your sessionid and steamLoginSecure cookies.
  • Steam ID: Put your SteamID steam_config.json file (the one in your profile url):
{
  "steamid": "<your steam id>",
  "sessionid": "<your sessionid here>",
  "steamLoginSecure": "<your steamLoginSecure here>"
}

How to Get Steam Cookies

Chrome

  1. Open Steam Community in Chrome.
  2. Press F12ApplicationCookies.
  3. Copy sessionid and steamLoginSecure.

Firefox

  1. Open Steam Community in Firefox.
  2. Press F12StorageCookies.
  3. Copy sessionid and steamLoginSecure.

⚠️ If cookies are wrong, or if Steam temporarily blocks your IP, you will see:

Attempt {attempt}/{retries} failed: {e}. Retrying in {delay}s...

⚠️ If your case history is sizeable you may run into temporary IP blocks

To avoid future IP blocks, open case_logger.py in your favorite text editor and change time.sleep(1) to `time.sleep(3)


Usage

  1. Install dependencies:
pip install requests beautifulsoup4
  1. Update steam_config.json with your cookies and SteamID.
  2. Run the script:
python case_logger.py

Features

  • Tracks all case openings.
  • Counts StatTrak™ items.
  • Shows cumulative rarity stats.
  • Shows cumulative case opening stats.
  • Top 3 opened skins.
  • Tracks last knife and glove openings.
  • Special drops: Classified, Covert, Contraband, Extraordinary gloves.
  • Generates case_openings.csv.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages