Rewrite from TypeScript to Rust

This commit is contained in:
mtkennerly 2023-11-28 14:16:54 +08:00
parent a8b8b549d0
commit 25d71ba0f2
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
29 changed files with 221685 additions and 232325 deletions

View file

@ -0,0 +1,18 @@
import json
import sys
from steam.client import SteamClient
def main():
app_id = int(sys.argv[1])
client = SteamClient()
client.anonymous_login()
info = client.get_product_info(apps=[app_id])
print(json.dumps(info, indent=2))
if __name__ == "__main__":
main()