https://developer.yahoo.com/fantasysports/guide/game-resource.html
所以在API指南上,在stat_categories下,有一组ids,
https://fantasysports.yahooapis.com/fantasy/v2/game/nba/stat_categories
但是当我查看我发出的所有API请求的json数据时,没有
{'stats': [{'stat': {'stat_id': 0,
'name': 'Games Played',
'display_name': 'GP',
'sort_order': '1',
'position_types': [{'position_type': 'P'}]}}这就去办。
这是我的json数据的结果。如下图所示,没有stat_id =0、1或2,但它是从3开始的。
'stats': [{'stat': {'stat_id': '3', 'value': '3473'}},
{'stat': {'stat_id': '4', 'value': '1625'}},
{'stat': {'stat_id': '6', 'value': '920'}},
{'stat': {'stat_id': '7', 'value': '713'}},
{'stat': {'stat_id': '9', 'value': '1069'}},
{'stat': {'stat_id': '10', 'value': '384'}},
{'stat': {'stat_id': '12', 'value': '4347'}},
{'stat': {'stat_id': '13', 'value': '408'}},
{'stat': {'stat_id': '15', 'value': '1792'}},
{'stat': {'stat_id': '16', 'value': '1016'}},
{'stat': {'stat_id': '17', 'value': '271'}},
{'stat': {'stat_id': '18', 'value': '132'}},
{'stat': {'stat_id': '19', 'value': '586'}},
{'stat': {'stat_id': '27', 'value': '63'}},
{'stat': {'stat_id': '28', 'value': '3'}}]有人能帮我吗?
我需要每天玩游戏的数量来做我的分析。
发布于 2019-10-02 03:42:54
如果你查询“联盟设置”,雅虎会让你知道你的联盟跟踪的积分统计数据。雅虎只会提供你追踪的积分统计数据的统计信息。
最有可能的是,Stat 0 ->游戏不是一个跟踪/得分统计。因此,当您查询球员时,它不会向您提供此信息。
获得这个数据的唯一方法,是让你的联盟提供这个作为得分统计数据。
https://stackoverflow.com/questions/53754207
复制相似问题