def get_tm_team_league(soup):
    """Get the team name and league from a team page."""
    team_name, league = soup.find("meta", attrs={'name':'keywords'})['content'].split(',')[:2]
    return team_name, league