def player_salary_values(html_text):
    """ player_salary_values returns a dictionary of
    salary information keyed by Hoopshype player ID

    @param **html_text** (*str*): String of the HTML response
    from a Hoopshype team URL

    Returns:

        **player_salaries** (*dict*): Dictionary keyed by SpotRac
            player ID with a list of yearly salaries (followed
            by player salary URL) as values
    """
    value_str = '<span'
    player_salaries = {}
    url_val = html_text.find('<a')
    total_val = html_text.find('<td class="player">Active Roster Cap</td>')
    while url_val < total_val:
        player_list = []
        option_list = []
        start_ind = html_text.find('<a')
        end_ind = html_text.find('</a>')
        play_key = html_text[start_ind + 2:end_ind]
        play_key = play_key[play_key.find('href="') + 6:play_key.find('">')]
        player_key = play_key.split('/')[-2]
        for col_count in range(0, 9):
            if col_count < 6:
                start_ind = html_text.find(value_str) + len(value_str)
                html_text = html_text[start_ind:]
                start_ind = html_text.find('">') + 2
                end_ind = html_text.find('</span>')
                end_len = 7
            elif col_count == 6:
                start_ind = html_text.find('<td') + 3
                html_text = html_text[start_ind:]
                start_ind = html_text.find('">') + 2
                if 'option-' in html_text[:start_ind]:
                    option_start = html_text.find('option-') + 7
                    option_end = html_text.find(' "')
                    option_list.append(html_text[option_start:option_end])
                end_ind = html_text.find('<input')
                end_len = 6
            elif col_count == 7:
                start_ind = html_text.find(value_str) + len(value_str)
                html_text = html_text[start_ind:]
                start_ind = html_text.find('" >') + 3
                end_ind = html_text.find(' </span>')
                end_len = 8
            else:
                start_ind = html_text.find('<td') + 3
                html_text = html_text[start_ind:]
                start_ind = html_text.find('" >') + 3
                end_ind = html_text.find('</td>')
                end_len = 5
            try:
                salary_value = html_text[start_ind:end_ind]
            except:
                salary_value = 0
            player_list.append(salary_value)
            html_text = html_text[end_ind + end_len:]
        player_list.append(play_key)
        player_salaries[player_key] = {}
        player_salaries[player_key]['salary'] = player_list
        player_salaries[player_key]['options'] = option_list
        total_val = html_text.find('<td class="player">Active Roster Cap</td>')
        url_val = html_text.find('<a')
    return player_salaries
