Skip to content

Instantly share code, notes, and snippets.

@woctezuma
Created April 22, 2024 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woctezuma/dbcb2f5bb14e61b294c416e9ce79a4fc to your computer and use it in GitHub Desktop.
Save woctezuma/dbcb2f5bb14e61b294c416e9ce79a4fc to your computer and use it in GitHub Desktop.
Check if an owned app is ignored
import json
from pathlib import Path
# https://store.steampowered.com/dynamicstore/userdata/
fname = "store.steampowered.com.json"
with Path(fname).open() as f:
data = json.load(f)
owned_apps = data["rgOwnedApps"]
ignored_apps = [int(app_id) for app_id in data["rgIgnoredApps"]]
intersection = set(ignored_apps).intersection(owned_apps)
print(intersection)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment