Skip to content

Python script that monitors one or more Steam accounts' activity status and logs the data in a file.

Notifications You must be signed in to change notification settings

WhaleOTE/Steam-Status-Tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 

Repository files navigation

image

Steam Status Tracker

Steam Status Tracker is a Python script that monitors one or more Steam accounts' activity status and logs the data in a file. It utilizes the Steam API to fetch the current status of the Steam IDs at regular intervals. The script logs the data in two separate log files, steam_data_log.txt and status_changes_log.txt.

Want to know when a user logs onto or off Steam? I would highly recommend privating your profile or disabling Steam from auto startup to protect your privacy as this can be used to monitor your daily activity.

Requirements

  • Python 3.x or higher installed. You can download it from here.
  • Steam API key. You can obtain one here.

Installation

  1. Clone the repository or download the script directly.

    git clone https://github.com/WhaleOTE/Steam-Status-Tracker.git
  2. Install the necessary dependencies using pip.

    pip install requests

Configuration

Before running the script, you need to set up your Steam API key and Steam IDs in the script. Follow the steps below:

  1. Open the script file steam_status_tracker.py in a text editor.

  2. Locate the following lines and replace the placeholder values with your Steam API key and Steam IDs:

    API_KEY = 'YOUR_API_KEY'
    STEAM_ID_1 = 'STEAM_ID_1'
    STEAM_ID_2 = None  # Replace with an actual Steam ID if needed, or keep it as None for an optional ID

How to Run

Open command prompt and navigate to the directory where the script is located. Then, run the following command:

python steam_status_tracker.py

If python isn't recognized, try py instead. The script will start monitoring the status of the Steam IDs and will log the data in the specified log files. You can stop the script at any time by pressing Ctrl + C in the terminal.

Output

The script logs the data in two files:

  1. steam_data_log.txt - Contains a log of the Steam IDs' status at each check.
  2. status_changes_log.txt - Contains a log of any status changes detected since the script started running.

Notes

  • The script will automatically create the steam_data_log.txt and status_changes_log.txt in the folder.
  • You can track one or two Steam accounts at the same time with the script. Replace "None" with a SteamID and it'll track it as well.
  • The script checks the status every minute by default, but you can modify the time.sleep(60) line in the script to adjust to your preference.
  • Do not remove the '' in the 'YOUR_API_KEY' or 'STEAM_ID_1'.
  • You are limited to one hundred thousand (100,000) calls to the Steam Web API per day.

Disclaimer

This script is for educational and demononstration purposes. Use at your own discretion.

About

Python script that monitors one or more Steam accounts' activity status and logs the data in a file.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages