Reputation: 125
Good morning, I am looking for a way to convert the html code to plain text, I leave an example
HTML
<div class="card-headline"><h3 class="card-title">
Texto Plano
<div class="card-headline"><h3 class="card-title">
Upvotes: 0
Views: 2199
Reputation: 58
BeautifulSoup is a scraping library, so it's probably not the best choice for doing HTML rendering. If it's not essential to use BeautifulSoup, you should take a look at html2text. For example:
This outputs:
Some text more text even more text
Some other text
Upvotes: 1