Using AI and Python to predict NFL Matches
Utilize power of AI to make NFL score predictions
Introduction
Today we will leveraging the power of Claude Sonnet 3.5 to generate predictions for the upcoming Week 9 of NFL games.
Given NFL current season data from pro football reference, the idea here is we will not write any code ourselves instead we will ask Claude to write all code. We will simply run the code to ensure it executes properly and then examine the generated predictions.
Walkthrough
First, lets get the data we will be making predictions on. For simplicity I will only be using data for the current NFL season scraped from -
The benefit of this data is that it also contains upcoming fixtures which should make our workflow much easier.
The first prompt I will ask claude is- “Using requests and beautiful soup extract the data from this table”. Table-