def get_app_data(app_id):
url = 'http://store.steampowered.com/api/appdetails?appids=' + str(app_id)
response = urllib.urlopen(url)
try:
data = json.loads(response.read())
if not data[str(app_id)]['success'] or data[str(app_id)]['data']['type'] != 'game':
return None
return data[str(app_id)]
except:
return None
评论列表
文章目录