GithubHelp home page GithubHelp logo

fpl-stat-gen's Introduction

Prerequisites

  1. Python 3.4. Go to Download Python 3.4.7

  2. requests and tqdm library. Run the following on your preferred terminal:

pip3 install requests tqdm
  1. Set Email, Password and League ID in the python_script folder.

Usage

For now, you can get 2 main things out of the python script:

  • Distribution of players that are being picked in a Gameweek
  • Distribution of players being captained in a Gameweek

1. Get stats for a specific GW

Run:

python3 python_script/getKoraFPLStat.py --gameweek 2 --type classic

or

python3 python_script/getKoraFPLStat.py -g 2 -t classic

If it does not work use python instead of python3

2. Get all stats for every GW

Add execution permission to the bash scripts: chmod +x getAll.sh

Run the command:

./getAll.sh

3. Get stats for the latest GW

Add execution permission to the bash scripts: chmod +x getLastGW.sh

Run the command:

./getLastGW.sh

Please Note: For first time usage, you have to put your password to validate the payload for getting all players' data. Replace the value of LOGIN_PASSWORD in getKoraFPLStat.py (It's not harmful, relax)

The outputs here are for Noibeddo FPL league.

fpl-stat-gen's People

Contributors

azmainadel avatar

Stargazers

 avatar  avatar  avatar

Watchers

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