Created
April 22, 2024 14:42
-
-
Save woctezuma/dbcb2f5bb14e61b294c416e9ce79a4fc to your computer and use it in GitHub Desktop.
Check if an owned app is ignored
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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