Python Tool for pulling roster data from Sleeper and displaying bye weeks by position.
Player data fetched weekly from Sleeper and available for use in the Flat Viewer.
√ sleeper-roster-data % python3 ./sleeper_roster_data.py -h
usage: sleeper_roster_data.py [-h] [-j] league-id username
Print out bye weeks for Sleeper team or dump roster data
positional arguments:
league-id Sleeper league ID
username Sleeper username
options:
-h, --help show this help message and exit
-j, --json Output full roster data in JSON (default: False)
Python3 and the script assumes that player data has been downloaded from Sleeper's API already and stored as player_data.json
curl -so player_data.json https://api.sleeper.app/v1/players/nfl
- requests
- argpase
pip install -r requirements.txt
