def repo_extract(input_string, username):
    """
    This function extract repo from raw_html
    :param input_string: raw input html
    :param user_name: user_name
    :type input_string:str
    :type user_name:str
    :return: repo_list as list
    """
    try:
        user_list = []
        index = 0
        shift = len(username) + 1
        while index != -1:
            index = input_string.find('src="/' + username, index + shift,
                len(input_string))
            length = input_string[index:].find('graphs/')
            star_repo = input_string[index + 5:index + length]
            if star_repo.find('<svg') == -1 and len(star_repo) != 0:
                user_list.append(star_repo)
        return user_list
    except Exception as ex:
        pass
