Skip to content

razinc/fplysis

Repository files navigation

Introduction

Code style: black

Make better calls in Fantasy Premier League.

The Zen of FPL

  • Fixtures over form.
  • Transfers are precious.
  • Ignore price rises.
  • Avoid confirmation of bias.
  • Luck is a factor.
  • Utilise xG data.

Read Fabio Forges full interview here.

Features

  • analysis_league.py is unavailable right now.
  • analysis_team.py is used to track your team performance and suggest players which you should buy.
  • analysis_top_10k.py is used to track which players is owned by top 10K managers.

Installation

fplysis uses poetry for dependacies management. To install all of them:

poetry install

Credentials

All credentials are stored in fpl_credentials.py using below format. This is required for analysis_league.py and analysis_top_10k.py where login is required to access league's data. You can use analysis_team.py with or without credentials. With credentials, you will get the latest team and money in the banks.

EMAIL = ""
PASSWORD = ""
COOKIE = """datadome=;pl_profile="""

You can view sample outputs of each script in section below.

Usage

Enter virtual environment:

poetry shell

Or you can use poetry run before any script:

poetry run python analysis_top_10k.py

Each of available scripts have a simple guide on how to use them by adding -h switch.

poetry run python analysis_team.py -h

Sample Output

Warning: These samples might be outdated but you can still get the idea on what each script does.

  • analysis_team.py

  • analysis_top_10k.py

Miscellaneous

Additional resources.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages