From e2aabf3dd8d7609b87a9d2e6cf732eb4a9cc0a25 Mon Sep 17 00:00:00 2001 From: Daniel Walton Date: Tue, 17 May 2022 05:03:33 -0400 Subject: [PATCH] NFL: correct home_name and away_name BOXSCORE_SCHEME --- sportsipy/nfl/constants.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sportsipy/nfl/constants.py b/sportsipy/nfl/constants.py index 94223b07..7c593818 100644 --- a/sportsipy/nfl/constants.py +++ b/sportsipy/nfl/constants.py @@ -78,10 +78,10 @@ BOXSCORE_SCHEME = { 'game_info': 'div[class="scorebox_meta"]:first', 'game_details': 'table#game_info tr', - 'home_name': 'a[itemprop="name"]:first', + 'home_name': 'div[class="linescore_wrap"] table tbody tr:last td:nth-child(2)', 'summary': 'table[class="linescore nohover stats_table no_freeze"]:first', 'team_stats': 'table#team_stats thead', - 'away_name': 'a[itemprop="name"]:last', + 'away_name': 'div[class="linescore_wrap"] table tbody tr:first td:nth-child(2)', 'away_points': 'div[class="scorebox"] div[class="score"]', 'away_first_downs': 'td[data-stat="vis_stat"]', 'away_rush_attempts': 'td[data-stat="vis_stat"]',