Skip to main content
100%

Gist 1cb878087a8440c6869a1e2b144f1da4

✓ Published0🌍 Public
CConorAspell
Last edited Dec 28, 2020
Created on Dec 28, 2020

This example shows an automated Fantasy Premier League (FPL) team-update check that triggers an email-based update when the next gameweek deadline is within 24 hours. The code uses `aiohttp` to asynchronously fetch gameweek data from the FPL API via the `fpl` library, then `pandas` filters deadlines against the current timestamp. If a deadline is imminent, it reads environment variables for credentials and calls the `update` function from `update_team.py` to perform the actual roster changes. The visualization highlights the asynchronous request flow and conditional logic, with no graphical rendering involved.

AI-generated description

Similar vizzes