From 3f04dcb3bfe6adebe943f5fcc2485767a744e282 Mon Sep 17 00:00:00 2001 From: agatha Date: Sat, 26 Jul 2025 12:32:08 -0400 Subject: [PATCH] fix: replace deprecated parameter of `soup.find` the `text` parameter of `soup.find` has been deprecated and `string` is to be used instead. close issue #3 --- downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/downloader.py b/downloader.py index 24b2ea6..70456bd 100644 --- a/downloader.py +++ b/downloader.py @@ -111,7 +111,7 @@ class RomhackRaceScraper: seasons = set() # use a set to avoid duplicates # Find the season navigation section - looking for text that starts with "Season" - season_text = soup.find(text=lambda t: t and t.strip().startswith('Season')) + season_text = soup.find(string=lambda t: t and t.strip().startswith('Season')) if season_text: parent = season_text.parent