Python konvertiert HTML in Text und imitiert die Formatierung

Ich lerne BeautifulSoup und habe viele "html2text" -Lösungen gefunden, aber die, die ich suche, sollte die Formatierung nachahmen:

<ul>
<li>One</li>
<li>Two</li>
</ul>

Würde werden

* One
* Two

und

Some text
<blockquote>
More magnificent text here
</blockquote>
Final text

zu

Some text

    More magnificent text here

Final text

Ich lese die Dokumente, sehe aber nichts direktes. Irgendeine Hilfe? Ich bin offen für etwas anderes als schöne Suppe.

Antworten auf die Frage(3)

Ihre Antwort auf die Frage