I'm trying to extract data from a website using beautiful soup to parse the html. I'm currently trying to get the table data from the following webpage :
link to webpage
I want to get the data from the table. First I save the page as an html file on my computer (this part works fine, I checked that I got all the information) but when I try to parse with the following code :
soup = BeautifulSoup(fh, 'html.parser')
table = soup.find_all('table')
cols = table[0].find_all('tr')
cells = cols[1].find_all('td')`
I don't get any results (specifically it crashes, saying there's no element at index 1). Any idea of where it could come from?
Thanks