def get_character(self, name): url_return = do_request("character/?name.first_lower=%s&c:resolve=world" % name.lower()) try: player_id = url_return["character_list"][0]["id"] player_name = url_return["character_list"][0]["name"]["first"] api_result = do_request("single_character_by_id/?id=%s&c:resolve=outfit,world" % player_id) player = Character(player_id, player_name) base = api_result["single_character_by_id_list"][0] self.get_character_info(base, player) self.get_kills_info(base, player) return player except: return "Not found."
def get_server(world_id): url_return = do_request("world/?world_id=%s" %world_id) return url_return["world_list"][0]["name"]["en"]
def get_faction(faction_id): url_return = do_request("faction/%s"%faction_id) return url_return["faction_list"][0]["name"]["en"]
def get_server(world_id): url_return = do_request("world/?world_id=%s" % world_id) return url_return["world_list"][0]["name"]["en"]
def get_faction(faction_id): url_return = do_request("faction/%s" % faction_id) return url_return["faction_list"][0]["name"]["en"]