How to predict the NBA with a Machine Learning system written in Python
Francisco Goitia

Hey man, I really enjoyed reading this article because I’m currently trying to build a neural network to predict NBA spreads for a final project. I’m trying to use your crawler right now and am having the following error: “reg_season, post_season = seasons[0], None

IndexError: list index out of range”. Was wondering if you had any idea of why this might be? I tried to debug a bit myself and discovered that this line:

seasons = soup.find_all(‘table’, {‘class’: ‘sortable stats_table’})

is creating a null object.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.