Exemplo n.º 1
0
 def __init__(self, key):
     super(MatchHistory, self).__init__(key)
     self.match_api = MatchDetails(key)
Exemplo n.º 2
0
from dotamatch import get_key
from dotamatch.history import MatchHistory
from dotamatch.matches import MatchDetails
from dotamatch.players import PlayerSummaries
from dotamatch.heroes import Heroes

key = get_key()
history = MatchHistory(key)
player_summaries = PlayerSummaries(key)
details = MatchDetails(key)
heroes = Heroes(key)

tidehunter_id = 29

for match in history.matches(skill=3, hero_id=tidehunter_id):
    match = details.match(match.match_id)
    for player in [p for p in match.players if p['hero_id'] == tidehunter_id]:
        for i in range(6):
            print 'item_{0}'.format(i), player['item_{0}'.format(i)]

Exemplo n.º 3
0
 def __init__(self, key):
     super(MatchHistoryBySequenceNum, self).__init__(key)
     self.match_api = MatchDetails(key)