#!/usr/bin/env python3 # This script takes two parameters # - the first is the Steam game id, # - the second (optional) is the GOG Galaxy game id. # # Example: # ./steam_achievements.py --steamid 631570 [--galaxyid 1845001352] # # It will extract the Steam stats information to create the ScummVM ini-files for achievements.dat # For GOG versions of the games we assume that they are using same achievements as Steam versions import os import sys import codecs import argparse import requests import logging from selenium import webdriver from selenium.webdriver.chrome.service import Service import requests from selenium.webdriver.common.by import By from lxml import etree # For Stats only English strings exists on Steam side. # - stats info is collected from SteamDB, we collect lists of # For Achievements some games have only English strings, and some games have additional translations on Steam side. # This script is currently using various sources of information for Steam achievements: # - achievements info collection starts from SteamDB, we collect lists of