我是Python的初学者,我刚刚开始了一个暂时搁置的项目,基本上,我需要从nhl.com上的表导入数据
我有我的旧代码(大约1.5年),但显示和页面的一般格式已经改变,不再工作了
我工作的那张桌子是关于家里的Powerplay的
The URL is: http://www.nhl.com/stats/teams?report=powerplay&reportType=season&seasonFrom=20202021&seasonTo=20202021&gameType=2&homeRoad=H&filter=gamesPlayed,gte,1&sort=powerPlayPct&page=0&pageSize=50
The API (if I got it correctly is): https://api.nhle.com/stats/rest/en/team/powerplay?isAggregate=false&isGame=false&sort=%5B%7B%22property%22:%22powerPlayPct%22,%22direction%22:%22DESC%22%7D%5D&start=0&limit=50&factCayenneExp=gamesPlayed%3E=1&cayenneExp=gameTypeId=2%20and%20homeRoad=%22H%22%20and%20seasonId%3C=20202021%20and%20seasonId%3E=20202021
我想提取的是:
1) Team
2) PP%
(第一列和最后一列之前)
我知道这对这里的大多数人来说都很容易,但我已经被困了一段时间了,任何形式的帮助都将不胜感激
先走一步
您可以使用以下示例从API URL加载数据:
印刷品:
相关问题 更多 >
编程相关推荐