Code Monkey home page Code Monkey logo

footballstats's Introduction

footballStats

An open database with historical data of major football leagues. Initially will cover the following

  1. English Premier League
  2. Spanish La Liga
  3. Italian Serie A
  4. German Bundesliga

Data format

The data will be stored as JSON files and will have the following structure

-- league
-- matches
  -- general
  -- score
  -- benchHome
  -- benchAway
  -- teamHome
  -- teamAway
  -- goalHome
  -- goalAway
  -- subsHome
  -- subsAway
  -- foulHome
  -- foulAway

The individual nodes are as described below

  • league This is the name of the league and the year for which the data exists
  • matches Contains data for all the matches in that particular league and year

For the matches node we have further nodes as described below

  • general Contains general information about the match and includes the following fields

    • date (Date on which the match took place)
    • time (Local time when the match started)
    • referee (The name of the official referee)
    • venue (The venue where the match took place)
    • attendance (Number of people attending the match)
  • score This has information about the score and includes the following fields

    • home (The name of the home team)
    • away (The name of the away team)
    • homeScore (Goals scored by the home team)
    • awayScore (Goals scored by the away team)
  • benchHome Names of the players on the bench for the home team

  • benchAway Names of the players on the bench for the away team

  • teamHome Names of the starting XI for the home team

  • teamHome Names of the starting XI for the away team

  • goalHome Names of the goal scorers for the home team

    • name (Name of the player who scored the goal)
    • time (Time when the goal was scored)
    • desc (Description to indicate the type of goal that was scored)
  • goalAway Names of the goal scorers for the away team

    • name (Name of the player who scored the goal)
    • time (Time when the goal was scored)
    • desc (Description to indicate the type of goal that was scored)
  • subsHome The substitutions for the home team

    • on (Name of the player who came on)
    • off (Name of the player who was taken off)
    • time (Time when the substitution took place)
  • subsAway The substitutions for the away team

    • on (Name of the player who came on)
    • off (Name of the player who was taken off)
    • time (Time when the substitution took place)
  • foulHome Cards received by the home team

    • name (Name of the player who received the card)
    • card (Type of card either Red or Yellow)
    • type (The reason for receiving the said card)
    • time (Time when the player received the card)
  • foulAway Cards received by the away team

    • name (Name of the player who received the card)
    • card (Type of card either Red or Yellow)
    • type (The reason for receiving the said card)
    • time (Time when the player received the card)

Corrections

A lot of data for fouls has card given at time 0, given below are the statistics for incorrect data

  • English Premier League 1992-1993

    • There are 547 mistakes in English Premier League 1992-1993
    • There are 544 foul mistakes in English Premier League 1992-1993
    • There are 3 substitution mistakes in English Premier League 1992-1993
  • English Premier League 1993-1994

    • There are 653 mistakes in English Premier League 1993-1994
    • There are 652 foul mistakes in English Premier League 1993-1994
    • There are 1 substitution mistakes in English Premier League 1993-1994
  • English Premier League 1994-1995

    • There are 1251 mistakes in English Premier League 1994-1995
    • There are 1248 foul mistakes in English Premier League 1994-1995
    • There are 3 substitution mistakes in English Premier League 1994-1995
  • English Premier League 1995-1996

    • There are 1054 mistakes in English Premier League 1995-1996
    • There are 1054 foul mistakes in English Premier League 1995-1996
    • There are 0 substitution mistakes in English Premier League 1995-1996
  • English Premier League 1996-1997

    • There are 1238 mistakes in English Premier League 1996-1997
    • There are 1238 foul mistakes in English Premier League 1996-1997
    • There are 0 substitution mistakes in English Premier League 1996-1997
  • English Premier League 1997-1998

    • There are 1238 mistakes in English Premier League 1997-1998
    • There are 1232 foul mistakes in English Premier League 1997-1998
    • There are 6 substitution mistakes in English Premier League 1997-1998

footballstats's People

Contributors

rahulkadukar avatar

Watchers

 avatar Ben Hobden avatar

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.