def test_league_entries_by_summoner(): int_test_handler.test_result( baseriotapi.get_league_entries_by_summoner( int_test_handler.summoner_id))
riotapi.set_rate_limits((10, 10), (500, 600)) # Set your region and API Key which can be found here: (https://developer.riotgames.com/) # Do NOT release your API Key to the public riotapi.set_region("NA") riotapi.set_api_key("VALUE HERE") # Get the information for each summoner division_list = [] tier_list = [] points_list = [] wins_list = [] losses_list = [] for i in range(0, len(ids)): full = baseriotapi.get_league_entries_by_summoner(ids[i]) info_string = str(full['%d' % ids[i]][0]) division = re.findall('"division": "(.+?)",', info_string) tier = re.findall('"tier": "(.+?)"', info_string) points = re.findall('"leaguePoints": (.+?),', info_string) # wins = re.findall('"wins": (.+?),', info_string) losses = re.findall('"losses": (.+?),', info_string) division_list.append(division) tier_list.append(tier) points_list.append(points) # wins_list.append(wins) losses_list.append(losses) # Create a numpy arrays and put them together date = str(time.strftime("%d_%m_%Y"))
riotapi.set_rate_limits((10, 10), (500, 600)); # Set your region and API Key which can be found here: (https://developer.riotgames.com/) # Do NOT release your API Key to the public riotapi.set_region("NA") riotapi.set_api_key("VALUE HERE") # Get the information for each summoner division_list = [] tier_list = [] points_list = [] wins_list = [] losses_list = [] for i in range(0,len(ids)): full = baseriotapi.get_league_entries_by_summoner(ids[i]) info_string = str(full['%d' % ids[i]][0]) division = re.findall('"division": "(.+?)",', info_string) tier = re.findall('"tier": "(.+?)"', info_string) points = re.findall('"leaguePoints": (.+?),', info_string) # wins = re.findall('"wins": (.+?),', info_string) losses = re.findall('"losses": (.+?),', info_string) division_list.append(division) tier_list.append(tier) points_list.append(points) # wins_list.append(wins) losses_list.append(losses) # Create a numpy arrays and put them together date = str(time.strftime("%d_%m_%Y"))
def test_league_entries_by_summoner(): int_test_handler.test_result(baseriotapi.get_league_entries_by_summoner(int_test_handler.summoner_id))