download.py 文件源码

python
阅读 38 收藏 0 点赞 0 评论 0

项目:steam_game_generator 作者: applepinegames 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号