Skip to main content
100%

Gist 9d651a8ae89dc0d88db634886a5e5588

✓ Published0🌍 Public
CConorAspell
Last edited Dec 11, 2021
Created on Dec 11, 2021

This example shows a serverless deadline checker for Fantasy Premier League match deadlines, using a Python AWS Lambda function. It fetches fixture data from the Fantasy Premier League API and determines whether the next upcoming deadline falls within the next 24 hours. The code converts current and future timestamps, filters fixtures by deadline time, and returns `True` if the nearest deadline is tomorrow, otherwise it exits without a response. It relies on the `requests` library for API calls, `pandas` for dataframe filtering, and the `datetime` module for time calculations, with no visual rendering involved.

AI-generated description

Similar vizzes