I\'m trying to extract some text using BeautifulSoup. I\'m using get_text() function for this purpose.
BeautifulSoup
get_text()
My problem is that the text contain
Adding to Ian's and dividebyzero's post/comments you can do this to efficiently filter/replace many tags in one go:
for elem in soup.find_all(["a", "p", "div", "h3", "br"]): elem.replace_with(elem.text + "\n\n")