Collection of scripts to analyze ESPN Fantasy NBA league data
- Install latest master of espn-api from https://github.com/cwendt94/espn-api
- Set environment variables:
ESPN_S2
,SWID
,LEAGUE_ID
andLEAGUE_YEAR
: Login details for your leagueBOT_API_KEY
andBOT_CHAT_ID
: API-Key and Chat ID for the telegram bot and channel you'd like to post messages toINFLUX_SERVER
,INFLUX_USER
,INFLUX_PASSWORD
,INFLUX_DATABASE
andINFLUX_SERVER
: InfluxDB you'd like to store measures in
- To get the full NBA schedule download scheduleLeagueV2.json from https://cdn.nba.com/static/json/staticData/scheduleLeagueV2.json
- Drop measurement:
docker exec -it influxdb /bin/bash
influx delete --bucket HomeBucket --start '1970-01-01T00:00:00Z' --stop $(date +"%Y-%m-%dT%H:%M:%SZ") --predicate '_measurement="fantasy_playervalue"'