soup_new = bsoup(r_new.text)
for tr in soup_new.find_all('tr', align='center'):
    stack = []
for td in tr.findAll('td'):
    stack.append(td.text.replace('\n', '').replace('\t', '').strip())
acct.write(', '.join(stack) + '\n')
Очистите несколько страниц с помощью BeautifulSoup и Python