Giter Site home page Giter Site logo

espn-fantasy-football-analytics's Introduction

alt tag

ESPN Fantasy Football Analytics Demo

A way to quickly retrieve ESPN team, game, and player data for a strategic edge in Fantasy Football leagues.

>>> import espnfantasyfootball as espn
>>> espn.teams()

					 abbrev                                                          url
team                                                                                    
Dallas Cowboys          dal        http://espn.go.com/nfl/team/_/name/dal/dallas-cowboys
New York Giants         nyg       http://espn.go.com/nfl/team/_/name/nyg/new-york-giants
Philadelphia Eagles     phi   http://espn.go.com/nfl/team/_/name/phi/philadelphia-eagles
Washington Redskins     wsh   http://espn.go.com/nfl/team/_/name/wsh/washington-redskins
Buffalo Bills           buf         http://espn.go.com/nfl/team/_/name/buf/buffalo-bills
...                     ...                                                          ...

>>> espn.games(2015)

				 date             home_team home_team_score            visit_team visit_team_score
id                                                                                                
400791590  2015-09-13        Dallas Cowboys              27       New York Giants               26
400791705  2015-09-20   Philadelphia Eagles              10        Dallas Cowboys               20
400791491  2015-09-27        Dallas Cowboys              28       Atlanta Falcons               39
400791720  2015-10-04    New Orleans Saints              26        Dallas Cowboys               20
400791559  2015-10-11        Dallas Cowboys               6  New England Patriots               30
...               ...                   ...             ...                   ...              ...

>>> espn.players(400554447)

                    	team gamepackage             player REC CAR  C/ATT  YDS   AVG TD LONG TGTS INT SACKS
id                                                                                                          
400554447   Seattle Seahawks     passing     Russell Wilson          20/31  339  10.9  2             0  1-10
400554447   Seattle Seahawks     passing   Tarvaris Jackson            1/1    0   0.0  0             0   0-0
400554447  Arizona Cardinals     passing       Ryan Lindley          18/44  216   4.9  0             1  4-29
400554447  Arizona Cardinals     passing       Logan Thomas            0/1    0   0.0  0             0   0-0
400554447   Seattle Seahawks     rushing     Marshawn Lynch      10         113  11.3  2   79               
400554447   Seattle Seahawks     rushing     Russell Wilson       6          88  14.7  1   55               
400554447   Seattle Seahawks     rushing      Robert Turbin      10          38   3.8  0   11               
400554447   Seattle Seahawks     rushing  Christine Michael       8          28   3.5  0   15               
400554447  Arizona Cardinals     rushing     Stepfan Taylor      11          19   1.7  0    4               
400554447  Arizona Cardinals     rushing       Marion Grice       1           6   6.0  0    6               
400554447  Arizona Cardinals     rushing   Kerwynn Williams       2           4   2.0  0    3               
400554447  Arizona Cardinals     rushing      Robert Hughes       1           0   0.0  0    0               
	  ...                ...         ...                ...     ...    ...  ...   ... ..   ..  ...  ..   ... 

Setup

Simply:

pip install espnfantasyfootball

Troubleshoot/FAQ

espn-fantasy-football-analytics's People

Contributors

danielwillgeorge avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

sandy4321

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.