Giter Club home page Giter Club logo

fantasystats's People

Contributors

kjeldgaard avatar

Watchers

 avatar

fantasystats's Issues

Add current team to players

Currently the tables only show the team which drafted the player. It should also include the current team.

Awaiting PR in ESPN api repo.

Limit API queries

Currently, player info is queried individually. To speed up this process, all player data should be queried at once.

Spelling

Fix spelling mistakes in HTML template.

Median score improvements

With median scoring enabled, number of games played and missed due to injuries are not working properly anymore.

Better error handling if credentials are incorrect

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 last week to player stats

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.