ffbot 1.2.10__tar.gz → 1.2.11__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ffbot
3
- Version: 1.2.10
3
+ Version: 1.2.11
4
4
  Summary: Automate playing Yahoo Fantasy Football
5
5
  Home-page: https://github.com/amarvin/fantasy-football-bot
6
6
  Author: Alex Marvin
@@ -0,0 +1 @@
1
+ VERSION = "1.2.11"
@@ -14,7 +14,7 @@ from user_agent import generate_user_agent
14
14
 
15
15
  # A public league for current week and player IDs
16
16
  PUBLIC_LEAGUE = 101
17
- PUBLIC_LEAGUE_IDP = 413
17
+ PUBLIC_LEAGUE_IDP = 283
18
18
  SEARCH_PLAYER_GROUPS = ["QB", "WR", "RB", "TE", "K", "DEF"]
19
19
  SEARCH_PLAYER_GROUPS_IDP = ["QB", "WR", "RB", "TE", "K", "D", "DB", "DL", "LB"]
20
20
 
@@ -78,10 +78,9 @@ def scrape(league, is_IDP: bool = False):
78
78
  if not rows:
79
79
  break
80
80
  for row in rows:
81
- td = row.select("td")[1]
82
- ID = td.select_one(".player-status a")["data-ys-playerid"]
81
+ ID = row.select_one(".player-status a")["data-ys-playerid"]
83
82
  ID = int(ID)
84
- team = td.select_one(".ysf-player-name .D-b span").text
83
+ team = row.select_one(".ysf-player-name .D-b span").text
85
84
  team = team.split()[0]
86
85
  data.add((ID, team))
87
86
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ffbot
3
- Version: 1.2.10
3
+ Version: 1.2.11
4
4
  Summary: Automate playing Yahoo Fantasy Football
5
5
  Home-page: https://github.com/amarvin/fantasy-football-bot
6
6
  Author: Alex Marvin
@@ -1 +0,0 @@
1
- VERSION = "1.2.10"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes