Skip to content

Export game stats from GOG Galaxy 2.0 to csv file and run analysis on it.

License

Notifications You must be signed in to change notification settings

ChriZ982/gog-galaxy-2.0-stats-exporter

Repository files navigation

GOG Galaxy 2.0 Stats Exporter

Main repository at: https://gitlab.com/ChriZ98/gog-galaxy-2-0-stats-exporter

GOG Galaxy 2.0 GitHub release (latest by date) GitHub stars GitHub top language PayPal.Me ChriZ98

Run src\gog_stats_exporter.py to create a csv file containing data of all your owned games. 🎮 The data is also annotated with price data from steamprices.com. You can provide the local GOG Galaxy 2.0 database and the exporter will automatically scan all your owned games. You will most likely find the GOG Galaxy 2.0 database at C:\ProgramData\GOG.com\Galaxy\storage\galaxy-2.0.db.

You can then run gog_stats_analysis.py to launch a Plotly Dash server with many nice statistics to further analyse your gaming library. 📊

Feel free to look at the example preview! 🚀

✨ Planned Features

  • Implement the exporter using golang instead of python
  • Add original price info of games
  • Include Metacritic user ratings
  • Add calculations for "Price per minute"
  • Add comparison with friends
  • Maybe add comparison to HowLongToBeat data
  • Add possibility to provide manual overrides
  • Add cache for price data so it does not have to be pulled every time

⚙️ Prerequisites

Run pip3 install -r requirements.txt to install the following dependencies:

  • bs4
  • chart-studio
  • dash
  • pandas
  • pandasql
  • plotly
  • yapf

🛠️ Usage

usage: gog_stats_exporter.py [-h] [-d DATABASE] [-o OUTPUT] [-p [PROXIED]]
                             [--skip-prices [SKIP_PRICES]]
                             [-l {CRITICAL,ERROR,WARNING,INFO,DEBUG,NOTSET}]

Export stats from GOG Galaxy 2.0 to csv file.

optional arguments:
  -h, --help            show this help message and exit
  -d DATABASE, --database DATABASE
                        Path to GOG Galaxy 2.0 database.
  -o OUTPUT, --output OUTPUT
                        Path to output csv file.
  -p [PROXIED], --proxied [PROXIED]
                        Using proxies to scrape websites faster. Use at your
                        own risk! Without this setting the robots.txt is used
                        to configure the delay between requests.
  --skip-prices [SKIP_PRICES]
                        Skips the annotations of price data from
                        steamprices.com. Keep in mind that further analysis
                        might not work because of the missing fields.
  -l {CRITICAL,ERROR,WARNING,INFO,DEBUG,NOTSET}, --logging {CRITICAL,ERROR,WARNING,INFO,DEBUG,NOTSET}
                        Defines log level.

🌍 Contributing

If you find any issues or have some improvement ideas, please create an issue. Also feel free to fork the repo and create a pull request when you have finished your implementation. 📃

If your feature is a good addition to the project, it will be merged!

💖 Support my projects

If you like the project and you want to support me - please consider to gift using the button below.

PayPal.Me ChriZ98

Thanks! ❤️

📜 License

Creative Commons License GOG Galaxy 2.0 Stats Exporter by ChriZ982 is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.