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
Instead of replacing the tags with \n, it may be better to just add a \n to the end of all of the tags that matter.
To steal the list from @petezurich:
for elem in soup.find_all(["a", "p", "div", "h3", "br"]): elem.append('\n')