code: def _get_team_details(self, game):
          
          links = [i for i in game('td a').items()]
          # The away team is the first link in the boxscore
          away = links[0]
          # The home team is the last (3rd) link in the boxscore
          home = links[-1]
          scores = re.findall(r'<td class="right">\d+</td>', str(game))
          away_score = None
          home_score = None
          # If the game hasn't started or hasn't been updated on sports-reference
          # yet, no score will be shown and therefore can't be parsed.
          if len(scores) == 2:
              away_score = self._get_score(scores[0])
              home_score = self._get_score(scores[1])
          away_name, away_abbr = self._get_name(away)
          home_name, home_abbr = self._get_name(home)
          return (away_name, away_abbr, away_score, home_name, home_abbr,
                  home_score)
docs: Find the names and abbreviations for both teams in a game.
  
          Using the HTML contents in a boxscore, find the name and abbreviation
          for both teams.
  
          Parameters
          ----------
          game : PyQuery object
              A PyQuery object of a single boxscore containing information about
              both teams.
  
          Returns
          -------
          tuple
              Returns a tuple containing the names and abbreviations of both
              teams in the following order: Away Name, Away Abbreviation, Away
              Score, Home Name, Home Abbreviation, Home Score.