def METHOD_NAME(texts: list, rank_key: str) -> int:
    for line in texts:
        if rank_key in line:
            rank_value = line.split(":")[-1]
            rank_value = int(rank_value)
            return rank_value
    print("Could not find the correct rank key !")
    exit(1)