Rewrite from TypeScript to Rust
This commit is contained in:
parent
a8b8b549d0
commit
25d71ba0f2
29 changed files with 221685 additions and 232325 deletions
18
scripts/get-steam-app-info.py
Normal file
18
scripts/get-steam-app-info.py
Normal 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()
|
Loading…
Add table
Add a link
Reference in a new issue