Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 689 Bytes

File metadata and controls

25 lines (17 loc) · 689 Bytes
layout default

This code generates a pseudo-random team for the Fantasy Premier League It makes use of the FPL API to generate a team removing all the players who are injured or suspended and mazimising the total amount of money spent.

In the latest version it also allows to remove specific players, for example I found useful to see the algorithm response applying a veto on Haaland at the end of the 2023-2024 season, when it was considered a big risk!

Generate FPL team locally

Setup

python -m venv .venv && source .venv/bin/activate
pip install .

Run

randomfpl

{% include team-of-the-day.md %}