├── requirements.py └── screenshots.py /requirements.py: -------------------------------------------------------------------------------- 1 | import requests as rq 2 | import json 3 | from sys import argv 4 | 5 | appid = argv[1] 6 | 7 | req = rq.get('https://store.steampowered.com/api/appdetails?appids=' + appid) 8 | 9 | resp = req.json() 10 | 11 | requirements = resp[appid]['data']['pc_requirements']['minimum'] 12 | print(requirements) 13 | -------------------------------------------------------------------------------- /screenshots.py: -------------------------------------------------------------------------------- 1 | import requests as rq 2 | import json 3 | from sys import argv 4 | 5 | appid = argv[1] 6 | 7 | req = rq.get('https://store.steampowered.com/api/appdetails?appids=' + appid) 8 | 9 | resp = req.json() 10 | 11 | screenshots_len = len(resp[appid]['data']['screenshots']) 12 | 13 | 14 | for screenshots in range(0, screenshots_len): 15 | screenshot = resp[appid]['data']['screenshots'][int( 16 | screenshots)]['path_full'] 17 | img_tag = ' ' 19 | print(img_tag) 20 | --------------------------------------------------------------------------------