ffbot 1.2.8__tar.gz → 1.2.10__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.
- {ffbot-1.2.8 → ffbot-1.2.10}/PKG-INFO +1 -1
- ffbot-1.2.10/ffbot/constants.py +1 -0
- {ffbot-1.2.8 → ffbot-1.2.10}/ffbot/scraper.py +5 -5
- {ffbot-1.2.8 → ffbot-1.2.10}/ffbot.egg-info/PKG-INFO +1 -1
- ffbot-1.2.8/ffbot/constants.py +0 -1
- {ffbot-1.2.8 → ffbot-1.2.10}/LICENSE +0 -0
- {ffbot-1.2.8 → ffbot-1.2.10}/README.md +0 -0
- {ffbot-1.2.8 → ffbot-1.2.10}/ffbot/__init__.py +0 -0
- {ffbot-1.2.8 → ffbot-1.2.10}/ffbot/optimizer.py +0 -0
- {ffbot-1.2.8 → ffbot-1.2.10}/ffbot/utils.py +0 -0
- {ffbot-1.2.8 → ffbot-1.2.10}/ffbot.egg-info/SOURCES.txt +0 -0
- {ffbot-1.2.8 → ffbot-1.2.10}/ffbot.egg-info/dependency_links.txt +0 -0
- {ffbot-1.2.8 → ffbot-1.2.10}/ffbot.egg-info/requires.txt +0 -0
- {ffbot-1.2.8 → ffbot-1.2.10}/ffbot.egg-info/top_level.txt +0 -0
- {ffbot-1.2.8 → ffbot-1.2.10}/pyproject.toml +0 -0
- {ffbot-1.2.8 → ffbot-1.2.10}/setup.cfg +0 -0
- {ffbot-1.2.8 → ffbot-1.2.10}/setup.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
VERSION = "1.2.10"
|
|
@@ -81,7 +81,7 @@ def scrape(league, is_IDP: bool = False):
|
|
|
81
81
|
td = row.select("td")[1]
|
|
82
82
|
ID = td.select_one(".player-status a")["data-ys-playerid"]
|
|
83
83
|
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
|
|
85
85
|
team = team.split()[0]
|
|
86
86
|
data.add((ID, team))
|
|
87
87
|
|
|
@@ -190,13 +190,13 @@ def current_week():
|
|
|
190
190
|
|
|
191
191
|
# Parse current week from a public league
|
|
192
192
|
s = create_session()
|
|
193
|
-
url = "https://football.fantasysports.yahoo.com/f1/{}".format(PUBLIC_LEAGUE)
|
|
193
|
+
url = "https://football.fantasysports.yahoo.com/f1/{}/1".format(PUBLIC_LEAGUE)
|
|
194
194
|
s.headers["User-Agent"] = generate_user_agent()
|
|
195
195
|
r = s.get(url)
|
|
196
196
|
soup = bs(r.text, "lxml")
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
week =
|
|
197
|
+
REGEX_PATTERN = r"Week (\d+)"
|
|
198
|
+
m = re.search(REGEX_PATTERN, soup.text)
|
|
199
|
+
week = m.group(1)
|
|
200
200
|
week = int(week)
|
|
201
201
|
|
|
202
202
|
return week
|
ffbot-1.2.8/ffbot/constants.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
VERSION = "1.2.8"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|