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
This commit is contained in:
agatha 2025-07-26 12:32:08 -04:00
parent c332b1552f
commit 3f04dcb3bf

View File

@ -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