A library for converting HTML to plain text.
August - a html-to-text converter
August is an html to text converter specifically intended for producing text versions of HTML emails. The main code is all written in Rust, this packages is includes python bindings.
Install using PIP
$ pip3 install august
Then, import it and run convert
import august html = '<p>I\'m <em>so</em> excited to try this</p>' print(august.convert(html, width=20))
I'm /so/ excited to try this
- html2text: Coverts HTML into markdown, and supports a bazillion options. It's a great project if you want to produce markdown; but markdown, because it's designed to be turned into HTML, has a little more noise than is strictly necessary, and the header formatting is pretty unclear.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|august-2.1.0-cp35-cp35m-manylinux1_x86_64.whl (1.0 MB) Copy SHA256 hash SHA256||Wheel||cp35|
|august-2.1.0-cp36-cp36m-manylinux1_x86_64.whl (1.0 MB) Copy SHA256 hash SHA256||Wheel||cp36|
|august-2.1.0-cp37-cp37m-manylinux1_x86_64.whl (1.0 MB) Copy SHA256 hash SHA256||Wheel||cp37|