All work

Fantasy football squad recommender

A data pipeline and weekly recommendation engine for Fantasy Premier League.

Table of recommended players with position, club, upcoming fixture difficulty and a score, using invented names.
Sample data

Open the demo

The problem

Choosing a Fantasy Premier League squad every week means checking stats, fixtures, injuries and transfers across several sources, by hand.

What it does

  • Syncs player data from the official Fantasy Premier League feed.
  • Scores players with a different formula for each position.
  • Averages the difficulty of upcoming fixtures and flags clubs playing in European competitions.
  • Detects new signings, so the data stays current after transfers.
  • Returns a weekly squad recommendation through a simple API, plus a repair tool that fixes a squad that has become invalid.

How it is built

  • The data comes from public sources, and a second source supplies extra stats. When that source changed its address, every request quietly returned a web page instead of data. Responses are now checked before they are used.
  • Along the way we found and fixed real data errors: players who had changed clubs, stale records and mixed-up player IDs.

Worth knowing

  • The screenshot uses invented players and clubs.

Want something like this for your business?

Tell us what you’d like to build or automate.

Tell us what you’d like sorted