This page contains the table I want to scrap with BeautifulSoup:
Flavors of Cacao - Chocolate Database
The table is located inside a div with id spryregion1, however it couldn't be located with the id, thus instead I located it with the width of the table, then located all the tr elements.
The column titles are enclosed in th elements, and each row entries are in td. I have tried a few ways but couldn't scrape all the rows and put them into a CSV file.
Could someone give me some help/advice? Thanks!

The table you are looking for is not contained in the HTML for the page you are requesting. The page uses Javascript to request another HTML document containing it which it then wraps using the
<div>that you were looking for.To get the table, you can use a browser tool to spot the URL that the page is requesting and use this to get the page you need:
From there you can first extract the header row by searching for the
<th>entries and then iterate all the rows. The data could be written to a CSV file using Python's CSV library.Giving you an
output.csvfile starting:Tested using Python 3.6.3