Skip to content

Commit 09c34c7

Browse files
authored
Merge pull request #79 from amarvin/77-fix-bug-with-scraper-for-player-id-given-new-html-element
77 fix bug with scraper for player id given new html element
2 parents ee88c1d + 6ca5549 commit 09c34c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ffbot/constants.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "1.2.3"
1+
VERSION = "1.2.4"

ffbot/scraper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def scrape(league, is_IDP: bool = False):
7878
break
7979
for row in rows:
8080
td = row.select("td")[1]
81-
ID = td.select_one("span.player-status a")["data-ys-playerid"]
81+
ID = td.select_one(".player-status a")["data-ys-playerid"]
8282
ID = int(ID)
8383
team = td.select_one(".ysf-player-name span").text
8484
team = team.split()[0]

0 commit comments

Comments
 (0)