twbarber / fflib

Python Library for interacting with Fantasy Football Leagues.
BSD 3-Clause "New" or "Revised" License
48 stars 5 forks source link

This Project is no longer Maintained

fflib

fflib gives access to various fantasy football league data across multiple latforms. The library is intended to provide easy access to standings, rosters, free agent, and weekly matchups for use by league managers.

Currently, the only platform supported is ESPN. Others will be added in the future.

fflib is available as both a web service, and python library, with additional language support planned.

espn

In order to use fflib with your ESPN fantasy football data, your league will have to be open to the public. To do this, your commisioner will need nable this option in the League's settings. Simply visit:

http://games.espn.go.com/ffl/leaguesetup/settings?leagueId=<YOUR_LEAGUE_ID>

Make sure to replace the token with your actual league id that can be found in the address bar when you're at your league's home page. Under Basic settings, select 'Yes' from the 'Make League Viewable to Public' dropdown. Afterwards, you'll be able to access league data using this library.

Current Planned Features

Config Example

[espn]

user.league = 574839
user.season = 2015

Display Text Based Tables

+--------+---+---+---+------+----+
| TEAM   | W | L | T | PCT  | GB |
+--------+---+---+---+------+----+
| Team 1 | 0 | 0 | 0 | .000 | -- |
| Team 2 | 0 | 0 | 0 | .000 | -- |
| Team 3 | 0 | 0 | 0 | .000 | -- |
| Team 4 | 0 | 0 | 0 | .000 | -- |
| Team 5 | 0 | 0 | 0 | .000 | -- |
| Team 6 | 0 | 0 | 0 | .000 | -- |
+--------+---+---+---+------+----+

Standings

Teams

Scoreboard

Transactions

Free Agency

League Settings