companies = [] for cell in soup.find_all('td', attrs={'class':'name'}): companies.append(cell.find('a').get_text())