Skip to main content
100%

Gist 9bf3c1df30c761a2f4056979099ea7cd

✓ Published0🌍 Public
CConorAspell
Last edited Dec 5, 2023
Created on Dec 5, 2023

This example shows an automated Fantasy Premier League workflow that posts a user’s finalized team sheet for a given gameweek. It retrieves the full team JSON from an S3 bucket and submits it to the league’s API via a POST request. The code uses the `requests` library for HTTP communication, `json` for data handling, and custom utility functions from `fpl_utils` to fetch gameweek parameters and storage details. Error handling triggers an SNS notification to a specified topic if the API call fails. The visualization highlights the integration between cloud storage, Lambda execution, and external sports data endpoints.

AI-generated description

Similar vizzes