Skip to main content
100%

Gist 0b62984b5a27dcec2db3a4f234affd91

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

This example shows an automated pipeline that fetches English Premier League match odds from the Odds API and stores them as timestamped CSV files in Amazon S3. The code first pulls fixture deadlines from the Fantasy Premier League bootstrap API, then filters upcoming matches between the current and next deadline. It extracts William Hill’s home, draw, and away odds for each qualifying game, using the `requests` and `pandas` libraries to process the JSON responses into a DataFrame. Finally, the script writes the odds data to a CSV file named with the current date, demonstrating a serverless data ingestion workflow with `boto3` and AWS Lambda.

AI-generated description

Similar vizzes