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.
- Python 3.x or higher installed. You can download it from here.
- Steam API key. You can obtain one here.
-
Clone the repository or download the script directly.
git clone https://github.com/WhaleOTE/Steam-Status-Tracker.git
-
Install the necessary dependencies using pip.
pip install requests
Before running the script, you need to set up your Steam API key and Steam IDs in the script. Follow the steps below:
-
Open the script file
steam_status_tracker.py
in a text editor. -
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
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.
The script logs the data in two files:
steam_data_log.txt
- Contains a log of the Steam IDs' status at each check.status_changes_log.txt
- Contains a log of any status changes detected since the script started running.
- The script will automatically create the
steam_data_log.txt
andstatus_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.
This script is for educational and demononstration purposes. Use at your own discretion.