html = """<div>
  some text <br>
  <span> some more text </span> <br>
  <span> and more text </span>
</div>"""
soup = BS(html)
for linebreak in soup.find_all('br'):
    linebreak.extract()
print(soup.prettify())
Beautifulsoup sibling structure with br tags