playoverwatch.com的python包装器
python-overwatch的Python项目详细描述
为便于使用而设计的监视状态刮刀。 插入一个战斗标签,选择所需的英雄和过滤器,并调用函数。 数据将作为一个列表返回,随时可以根据需要操作和使用。
安装
pip install python-overwatch
要求
python 3.6版
用法
Modes:qpcpFilters:combat,assists,best,average,deaths,matchawardsgame,miscellaneous,herospecific# Default filter: 'best'# Default mode: 'qp'
示例
为所有英雄寻找游戏时间
fromoverwatchimportOverwatchoverwatch=Overwatch(battletag="Okush#11324")print(overwatch.playtime)['Pharah','40 hours','Roadhog','32 hours','Mei','29 hours','McCree','20 hours','Soldier: 76','17 hours','Mercy','13 hours',]
查找特定于英雄的统计信息
fromoverwatchimportOverwatchoverwatch=Overwatch(battletag="Okush#11324")print(overwatch(hero="mei",filter="hero specific))['Enemies Frozen','1,885','Enemies Frozen - Most in Game','30','Blizzard Kills - Most in Game','13','Blizzard Kills','587','Damage Blocked - Most in Game','12,569','Damage Blocked','442,710','Melee Final Blows - Most in Game','4','Enemies Frozen - Average','10.73','Damage Blocked - Average','2,521','Blizzard Kills - Average','3.34']
查找总体最佳统计信息
fromoverwatchimportOverwatchoverwatch=Overwatch(battletag="Okush#11324")print(overwatch())['Eliminations - Most in Game','48','Final Blows - Most in Game','31','Damage Done - Most in Game','23,924','Healing Done - Most in Game','14,379','Defensive Assists - Most in Game','26','Offensive Assists - Most in Game','8','Objective Kills - Most in Game','32','Objective Time - Most in Game','04:22','Multikill - Best','5','Solo Kills - Most in Game','31','Time Spent on Fire - Most in Game','13:29']
查找任何英雄的战斗统计信息
fromoverwatchimportOverwatchoverwatch=Overwatch(battletag="Okush#11324")print(overwatch(hero="dva",filter="combat"))['Eliminations','541','Deaths','149','Final Blows','264','Solo Kills','89','All Damage Done','220,531','Objective Kills','172','Objective Time','30:47','Multikills','9','Environmental Kills','2','Melee Final Blows','5','Time Spent on Fire','36:05','Critical Hits','4,436','Hero Damage Done','3,111','Barrier Damage Done','3,827','Critical Hit Accuracy','8%','Weapon Accuracy','31%']]
指定您想要的竞争模式统计信息
fromoverwatchimportOverwatchoverwatch=Overwatch(battletag="Okush#11324")print(overwatch(mode="cp",hero="pharah",filter="best"))['Eliminations - Most In Life, '12','All Damage Done - Most In Game','6,943','Weapon Accuracy - Best In Game','65%','Kill Streak - Best','12','All Damage Done - Most In Game','37,699','Eliminations - Most In Game','61','Final Blows - Most In Game','45','Objective Kills - Most In Game','33','Objective Time - Most In Game','01:27','Solo Kills - Most In Game','7']