Ekspoint 2,122 Posted May 23, 2016 Можно ли как то узнать среднее количество очков захвата на танке? Quote Share this post Link to post Short link Share on other sites
BoBaH 13 57 #328343 Posted May 23, 2016 Инфа открытая в профиле игроков на сайте, в клиенте в Достижения-Статистика. Очки захвата базы/кол-во боёв. Quote Share this post Link to post Short link Share on other sites
SkepticalFox 1,445 #328349 Posted May 23, 2016 (edited) from urllib2 import urlopen from json import load def getCap(acc_id): try: stat = load(urlopen('http://api.worldoftanks.ru/wot/account/info/?application_id=demo&fields=statistics.all.capture_points,statistics.all.battles&account_id=%s' % acc_id)) stat = stat['data'][str(acc_id)]['statistics']['all'] return float(stat['capture_points'])/stat['battles'] except:pass print getCap(11111) Edited May 23, 2016 by ShadowHunterRUS Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #328354 Posted May 23, 2016 (edited) близко, но мне нужно на определенным танке, а не вообще на акке ид танка 123456 и на нем уже capture_points делить на battles Edited May 23, 2016 by Ekspoint Quote Share this post Link to post Short link Share on other sites
ShuraBB 1,151 #328390 Posted May 24, 2016 http://ru.wargaming.net/developers/api_reference/wot/tanks/stats/ поле all.capture_points Оно? Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #328392 Posted May 24, 2016 http://ru.wargaming.net/developers/api_reference/wot/tanks/stats/поле all.capture_pointsОно?оно, мне нужно что бы по ид танку работало Quote Share this post Link to post Short link Share on other sites
ShuraBB 1,151 #328417 Posted May 24, 2016 (edited) Один из параметров запроса: tank_id - Идентификатор техники игрока Для примера: http://api.worldoftanks.ru/wot/tanks/stats/?application_id=demo&fields=all.capture_points&account_id=25106393&tank_id=59649&in_garage=1 Ответ: { "status": "ok", "meta": { "count": 1 }, "data": { "25106393": [ { "all": { "capture_points": 39 } } ] } } Edited May 24, 2016 by ShuraBB Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #328419 Posted May 24, 2016 Один из параметров запроса: tank_id - Идентификатор техники игрокада, но параметры отдельно от ид танка 1 Quote Share this post Link to post Short link Share on other sites
ShuraBB 1,151 #328422 Posted May 24, 2016 >но параметры отдельно от ид танка Не понял, поясни плиз Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #328437 Posted May 24, 2016 Все, я понял :) 1 Quote Share this post Link to post Short link Share on other sites
ShuraBB 1,151 #328452 Posted May 24, 2016 Оно? ;-) Quote Share this post Link to post Short link Share on other sites