kjeldgaard / fantasystats Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Add Pro team after player name
Amon-Ra St. Brown
becomes
Amon-Ra St. Brown (DET)
Currently the tables only show the team which drafted the player. It should also include the current team.
Awaiting PR in ESPN api repo.
Make it possible to parse credentials file. If not present, continue in case of public league.
Currently, player info is queried individually. To speed up this process, all player data should be queried at once.
Fix spelling mistakes in HTML template.
More detailed injury statistics for Top 5 round drafts.
See comment here, cwendt94/espn-api#283 (comment)
Add automatic python formatting to GitHub actions. E.g. black, see https://black.readthedocs.io/en/stable/integrations/github_actions.html
With median scoring enabled, number of games played and missed due to injuries are not working properly anymore.
Currently the output is
2022-10-12 18:42:41 INFO fantasy_stats.py:36: Getting League data: Started
Traceback (most recent call last):
File "/mnt/c/projects/FantasyStats/main.py", line 154, in <module>
main(**vars(args))
File "/mnt/c/projects/FantasyStats/main.py", line 54, in main
fantasy_stats = FantasyStats(
File "/mnt/c/projects/FantasyStats/fantasy_stats.py", line 37, in __init__
self.league = League(league_id=league_id, year=year, espn_s2=espn_s2, swid=swid)
File "/mnt/c/projects/FantasyStats/.venv/lib/python3.10/site-packages/espn_api/football/league.py", line 23, in __init__
self.fetch_league()
File "/mnt/c/projects/FantasyStats/.venv/lib/python3.10/site-packages/espn_api/football/league.py", line 26, in fetch_league
self._fetch_league()
File "/mnt/c/projects/FantasyStats/.venv/lib/python3.10/site-packages/espn_api/football/league.py", line 29, in _fetch_league
data = super()._fetch_league()
File "/mnt/c/projects/FantasyStats/.venv/lib/python3.10/site-packages/espn_api/base_league.py", line 30, in _fetch_league
data = self.espn_request.get_league()
File "/mnt/c/projects/FantasyStats/.venv/lib/python3.10/site-packages/espn_api/requests/espn_requests.py", line 74, in get_league
data = self.league_get(params=params)
File "/mnt/c/projects/FantasyStats/.venv/lib/python3.10/site-packages/espn_api/requests/espn_requests.py", line 54, in league_get
checkRequestStatus(r.status_code, cookies=self.cookies, league_id=self.league_id)
File "/mnt/c/projects/FantasyStats/.venv/lib/python3.10/site-packages/espn_api/requests/espn_requests.py", line 25, in checkRequestStatus
raise ESPNAccessDenied(f"League {league_id} cannot be accessed with swid={cookies.get('espn_s2')} and swid={cookies.get('SWID')}")
espn_api.requests.espn_requests.ESPNAccessDenied: League 123456 cannot be accessed with swid=123456
Add new column with Last Week
to player stats tables
Player Name | Drafted by | Draft Round | Current Team | Total Points
Player Name | Drafted by | Draft Round | Current Team | Total Points | Last Week
During the season, the number of missed games is incorrect. It should be limited to current week and not total weeks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.