Code Monkey home page Code Monkey logo

nexfootballstatistics's Introduction

NexFootballStatistics

##Prérequis Nodejs

##Installation

npm install bunyan -g
npm install

##Utilisation des scripts

node scripts/csvscraper.js fixtures_stats --start <fixtureStart> --end <fixtureEnd> --format <outputFormat> | bunyan

Ce script va récupérer toutes les statistiques de tous les joueurs qui ont joués entre les journée fixtureStart et fixtureEnd. Il est possible de spécifier le format du fichier : soit "json" soit "csv" grâce à outputFormat. La valeur par défaut est "csv" Le fichier enregistré est un fichier csv. Pour le moment, le dossier d'enregistrement est /target. Le fichier csv généré contient les informations suivants:

  • nom fichier : fixture_<fixtureStart><fixtureEnd>.csv ou fixture<fixtureStart>_<fixtureEnd>.json
  • collonnes :
  • playerId: entier - identifiant unique du joueur,
  • name: string - nom de famille du joueur,
  • note: entier - note MPG du joueur,
  • goals: entier - nombre de buts dans le match,
  • goal_assist: entier - nombre de passes décisives dans le match,
  • is_home: 0 ou 1, 1 indique que le joueur jouait à domicile,
  • homeTeam: string - équipe à domicile,
  • awayTeam: string - equipe à l'extérieur,
  • fixture: entier - numéro de journée.

nexfootballstatistics's People

Contributors

boussadia avatar

Watchers

 avatar James Cloos 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.