Skip to content

Commit e5b85de

Browse files
authored
Fixes scraping player team name (#104)
1 parent 09ade89 commit e5b85de

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.9"
1+
VERSION = "1.2.10"

ffbot/scraper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def scrape(league, is_IDP: bool = False):
8181
td = row.select("td")[1]
8282
ID = td.select_one(".player-status a")["data-ys-playerid"]
8383
ID = int(ID)
84-
team = td.select_one(".ysf-player-name span").text
84+
team = td.select_one(".ysf-player-name .D-b span").text
8585
team = team.split()[0]
8686
data.add((ID, team))
8787

0 commit comments

Comments
 (0)