Read https://yahoo-fantasy-api.readthedocs.io/en/latest/introduction.html for app / auth setup.
Update credentials in .streamlit/secrets.toml
.
- Set league_type, one of (nba, nfl, mlb, nhl, etc)
- Find league_id from league URL, eg. "144817" from "https://basketball.fantasysports.yahoo.com/nba/144817"
- Edit
STAT_ID_MAP
if not using['FG%', 'FT%', '3PTM', 'PTS', 'REB', 'AST', 'ST', 'BLK', 'TO']
pip install -r requirements.txt
streamlit run app.py