-
Python 3.4. Go to Download Python 3.4.7
-
requests
andtqdm
library. Run the following on your preferred terminal:
pip3 install requests tqdm
- Set Email, Password and League ID in the python_script folder.
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
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
Add execution permission to the bash scripts:
chmod +x getAll.sh
Run the command:
./getAll.sh
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.