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:
parent
c332b1552f
commit
3f04dcb3bf
@ -111,7 +111,7 @@ class RomhackRaceScraper:
|
|||||||
seasons = set() # use a set to avoid duplicates
|
seasons = set() # use a set to avoid duplicates
|
||||||
|
|
||||||
# Find the season navigation section - looking for text that starts with "Season"
|
# 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:
|
if season_text:
|
||||||
parent = season_text.parent
|
parent = season_text.parent
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user