-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmatch
33 lines (25 loc) · 818 Bytes
/
match
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import fire
from riotwatcher import TftWatcher, LolWatcher
from rich import print
from rich import pretty
riot_api_key = 'RGAPI-482753d0-8656-4f83-8140-ea376e44b361'
tft_watcher = TftWatcher(riot_api_key)
lol_watcher = LolWatcher(riot_api_key)
tagline = 'NA1'
region = 'na1'
count = int(20)
start = int(0)
# def name(player_name):
# # player_name = input()
# me = lol_watcher.summoner.by_name(region, player_name)
# print(me)
def match_hist(player_name):
me = lol_watcher.summoner.by_name(region, player_name)
print(me)
puuid = me.get('puuid')
match_list = tft_watcher.match.by_puuid(region, puuid, count, start)
print(match_list)
# matchlist = val_watcher.match.matchlist_by_puuid(region, me.get('puuid'))
# print(matchlist)
if __name__ == '__main__':
fire.Fire(match_hist)