Skip to content

Do you like football? Are you familiar with the Fantasy Premier League? If so, you've come to the right place - this is a project that will help you select the optimal team in terms of both budget and performance || 04.09.2024

Notifications You must be signed in to change notification settings

jjonczyk/FantasyScout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to the FantasyScout

This is a project dedicated to supporters of the top league in English football, especially Fantasy Premier League players. The code allows you to search for players who should perform the best in upcoming meetings. Based on quite detailed FPL datasets, an analysis is carried out, after which the program selects a ready-to-use, 15-players lineup taking into account the budget set by the creators (100M).

Installation

  1. Clone the repository to your local directory

git clone https://github.com/jjonczyk/FantasyScout.git

  1. Enter the project directory

cd FantasyScout

  1. Create a virtual environment

python -m venv ./venv

  1. Activate your venv

Windows: .\venv\Scripts\activate
Linux: source venv/bin/activate

  1. Install necessary libraries

pip install -r requirements.txt

  1. Copy the data from previous seasons here: [REPO_ROOT]/data/historical/
    If you cannot get it from the official FPL website, you can probably find them online, e.g. there: vaastav's FPL

Running the script

python fantasy_scout.py

As a result, an XLSX file should be created in the [REPO]/results/ directory, marked with today's datestamp in its name.

Pipeline

The following flowchart illustrates, in simplified form, the pipeline that is executed when the script is launched:

fpl-pipeline-v1

Additional info

This is a BETA version of my app. I can already see that a few aspects need to be improved, and I will try to develop them over the season.
Any feedback on improvements to my project is appreciated.

About

Do you like football? Are you familiar with the Fantasy Premier League? If so, you've come to the right place - this is a project that will help you select the optimal team in terms of both budget and performance || 04.09.2024

Topics

Resources

Stars

Watchers

Forks

Languages