Skip to content

A Python tool for translating and analyzing Steam reviews from xlsx files, using Azure API and language detection.

Notifications You must be signed in to change notification settings

KenBlasse/Py-SteamReviews

Repository files navigation

Py-SteamReviews

🛠️ A Python tool to automatically get, translate and analyze Steam reviews.


Features

  • Input for a specific Steam game ID
  • Automatic download of all available reviews via the Steam API
  • Optional review limit (all or custom number), invalid input will set review limit to 100!
  • Language detection via langdetect to skip German reviews
  • Translation via Azure (Key needed)
  • Cleans HTML and BBCode from reviews before processing
  • Optional XLSX export of translated reviews
  • Colored and stylized terminal output (ASCII banner + loading bar)
  • Modular structure (banner, API fetcher, translation, logging)
  • Logfile with per-run statistics

Requirements

  • Python 3.12 or newer
  • Installed Python packages:
    • pandas
    • requests
    • deep_translator
    • langdetect
    • python-dotenv
    • uuid
    • openpyxl

Install the required packages using:

pip install pandas deepl googletrans python-dotenv uuid openpyxl

Usage

  1. Create a .env file and add your DeepL API key:
AZURE_KEY=your_api_key_here
AZURE_REGION=your_region_here
  1. Run the script:
python translate_reviews.py
  1. Enter a valid Steam App ID (e.g., 730 for CS:GO)

Py Steam Reviews Start

  1. Choose how many reviews to fetch (all or a number)

  2. Decide whether to translate and/or save the result

Py Steam Reviews Reviews Loaded

  1. A .xlsx file will be saved in the /translations/ folder (if selected)

  2. A logfile (translation_log.txt) will track your session

The translated files will be saved into the translations/ folder. A detailed log file (translation_log.txt) will also be generated automatically.


🎯 Ready for Steam review translation!

Enter the Steam game ID: 730
Amount of Reviews (all or number): 20

✅ Review 1 translated.
⚠️ Skipping review 2 as it is already in German.
...
✅ File saved to: translations/730_translated.xlsx

Future Improvements:

  • Web interface for easier interaction

  • Support for multiple target languages

About

A Python tool for translating and analyzing Steam reviews from xlsx files, using Azure API and language detection.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages