Giter Site home page Giter Site logo

canozmen / fantasy-premier-league Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vaastav/fantasy-premier-league

0.0 0.0 0.0 16.68 MB

Creates a .csv file of all players in the English Player League with their respective team and total fantasy points

License: Other

Python 100.00%

fantasy-premier-league's Introduction

GitSpo Mentions

Fantasy-Premier-League

A FPL library that gets all the basic stats for each player, gw-specific data for each player and season history of each player

Acknowledgement

  • speeder1987 for providing 2018/19 fixtures.csv file

FAQ

Data Structure

The data folder contains the data from past seasons as well as the current season. It is structured as follows:

  • season/cleaned_players.csv : The overview stats for the season
  • season/gws/gw_number.csv : GW-specific stats for the particular season
  • season/gws/merged_gws.csv : GW-by-GW stats for each player in a single file
  • season/players/player_name/gws.csv : GW-by-GW stats for that specific player
  • season/players/player_name/history.csv : Prior seasons history stats for that specific player.

Player Position Data

In players_raw.csv, element_type is the field that corresponds to the position. 1 = GK 2 = DEF 3 = MID 4 = FWD

Contributing

  • If you feel like there is some data that is missing which you would like to see, then please feel free to create a PR or create an issue highlighting what is missing and what you would like to be added
  • If you have access to old data (pre-2016) then please feel free to create Pull Requests adding the data to the repo or create an issue with links to old data and I will add them myself.

Using

If you use data from here for your website or blog posts, then I would humbly request that you please add a link back to this repo as the data source (and I would in turn add a link to your post/site as a notable usage of this repo).

Downloading Your Team Data

You can download the data for your team by executing the following steps:

python teams_scraper.py <team_id>
#Eg: python teams_scraper.py 4582

This will create a new folder called "team_<team_id>_data18-19" with individual files of all the important data

Notable Usages of this Repository

fantasy-premier-league's People

Contributors

jcheong0428 avatar vaastav 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.