示例#1
0
def main():
    global api
    global r
    global g
    global theNumber
    global pics
    global champs
    global items
    pics = {}
    api = RiotAPI('335deea3-d338-4acd-a515-1905b5e4a51f')
    inpt = "rwandapanda"
    r = api.get_summoner_by_name(inpt)
    name = inpt.lower().replace(" ","")
    g = api.get_game(r[name]['id'])

    champs = getAllChamps()
    champs.organiseChamps()

    items = getAllItems()
    items.organiseItems()


    theNumber = 1
    getStatsForAllGames(theNumber)