From a4851589ebc4082de6f09b97464b8d7b8ae5f820 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 1 May 2025 21:41:09 -0400 Subject: [PATCH] remove fake tournament games --- src/scrapers/games_scraper.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/scrapers/games_scraper.py b/src/scrapers/games_scraper.py index e174a65..ba4e319 100644 --- a/src/scrapers/games_scraper.py +++ b/src/scrapers/games_scraper.py @@ -89,6 +89,9 @@ def parse_schedule_page(url, sport, gender): else game_item.select_one(OPPONENT_NAME_TAG).text.strip() ) game_data["opponent_name"] = opponent_name + wrong_names = ["vs.", "NCAA", "Tournament", "Ivy League"] + if any(name in opponent_name for name in wrong_names): + continue opponent_logo_tag = game_item.select_one(OPPONENT_LOGO_TAG) opponent_logo = (