def get_team(sport, team):
    """
    Get extra info that pertains to a certain team.
        Info available to all teams:
            - name: Name of the team
            - seasons: Number of seasons played
            - record: Overall record
            - champs: Number of championships won
            - leaders: Statistical leaders

        Info specific to baseball teams:
            - pennants: Number of times a team has won AL/NL league

        Info specific to football teams:
            - super_bowls: Number of Super Bowls won

        Info specific to hockey teams:
            - points: Number of overall points gained throughout all seasons played

        Info specific to baseball/hockey teams:
            - playoff_app: Total number of playoff appearances

        Info specific to football/hockey teams:
            - playoff_record: Overall record in the playoffs

    :param sport: The sport of the team to look for (baseball, football, hockey)
    :param team: The name/city of the team to look for
    :return: Team object containing information described above
    """
    team_pattern = re.compile(team, re.IGNORECASE)

    supported_sports = ['baseball', 'football', 'hockey', 'basketball']
    if sport not in supported_sports:
        raise errors.StatsNotFound(sport)
    elif sport == constants.FOOTBALL:
        sport = 'pro-football'

    base_url = 'https://www.{}-reference.com/teams/'.format(sport)
    table_id = 'active_franchises' if sport == 'hockey' else 'teams_active'
    links = SoupStrainer('table', {'id': table_id})
    soup = BeautifulSoup(requests.get(base_url).content, 'html.parser', parse_only=links)

    team_info_raw = _get_team_info_raw(soup, base_url, team_pattern, team, sport)

    if sport == constants.BASEBALL:
        team_info = {
            'name': team_info_raw[0],
            'record': team_info_raw[9],
            'seasons': team_info_raw[6:7][0],
            'playoff_app': team_info_raw[11],
            'pennants': team_info_raw[13],
            'champs': team_info_raw[15],
            'leaders': ' '.join(team_info_raw[16:18])
        }
        return Team(team_info)

    elif sport == constants.BASKETBALL:
        team_info = {
            'name': team_info_raw[0],
            'record': team_info_raw[11].split(',')[0],
            'seasons': team_info_raw[7].replace(';', ''),
            'playoff_app': team_info_raw[14],
            'champs': team_info_raw[17]
        }
        return Team(team_info)

    elif sport == 'pro-football':
        team_info = {
            'name': team_info_raw[0],
            'seasons': team_info_raw[2].split()[1],
            'record': team_info_raw[4],
            'playoff_record': team_info_raw[5].split()[2],
            'super_bowls': team_info_raw[7],
            'champs': team_info_raw[10],
            'leaders': team_info_raw[11:17]
        }
        return Team(team_info)

    elif sport == constants.HOCKEY:
        team_info = {
            'name': team_info_raw[0],
            'record': team_info_raw[9],
            'points': team_info_raw[10][1:-1],
            'seasons': team_info_raw[2].split()[1],
            'playoff_app': team_info_raw[3].split()[3],
            'playoff_record': team_info_raw[7].split()[2],
            'champs': team_info_raw[5],
            'leaders': [
                team_info_raw[11:13],
                ' '.join(team_info_raw[13:15]),
                ' '.join(team_info_raw[15:17])
            ]
        }
        return Team(team_info)
Get extra info that pertains to a certain team.
        Info available to all teams:
            - name: Name of the team
            - seasons: Number of seasons played
            - record: Overall record
            - champs: Number of championships won
            - leaders: Statistical leaders

        Info specific to baseball teams:
            - pennants: Number of times a team has won AL/NL league

        Info specific to football teams:
            - super_bowls: Number of Super Bowls won

        Info specific to hockey teams:
            - points: Number of overall points gained throughout all seasons played

        Info specific to baseball/hockey teams:
            - playoff_app: Total number of playoff appearances

        Info specific to football/hockey teams:
            - playoff_record: Overall record in the playoffs

    :param sport: The sport of the team to look for (baseball, football, hockey)
    :param team: The name/city of the team to look for
    :return: Team object containing information described above