gilbert189 — 11/29/2023, 7:35:19 AM
def un_html_inator(text):
  return "\n".join(elm.text for elm in BeautifulSoup(text).body.find_all("p"))
♥ 4 ↩ 0 💬 1 comment

comments

lily:

i'm fairly sure beautifulsoup has something like .text_content since i used it for a scraper

11/29/2023, 8:27:14 AM