So, I'm attempting to parse the table from a webpage using BeautifulSoup4 and it is able to get the webpage, and parse the content, but when I move onto looking for the table to put into a pandas data frame I get an attribute error: 'NONETYPE' object has no attribute 'Find_all'
I tried this same process for another webpage and it was able to work just fine, and I'm just trying to figure out what I'm doing incorrectly here where one works and the other does not.
#Imports
import pandas as pd
import numpy as np
from bs4 import BeautifulSoup
import requests
#Load data
url = 'https://gisopendata.siouxfalls.org/datasets/7b0407feca3e4f47bfe54559b9c1dd5d_13/data'
#Get request
web_data = requests.get(url)
#Parse Content
soup = BeautifulSoup(web_data.text, 'lxml')
#print(soup.prettify())
table = soup.find('table', {'class':'table table-striped table-bordered table-hover'})
headers = []
for i in table.find_all('th'):
title = i.text.strip()
headers.append(title)