rows = table.findAll('tr')
for tr in rows:
    cols = tr.findAll('td')
if 'cell_c' in cols[0]['class']:
    digital_code, letter_code, units, name, rate = [c.text for c in cols]
How to parse html table with python and beautifulsoup and write to csv