severinsimmler / plainhtml

Extract plain text from HTML

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extract plain text from HTML

Installation

$ pip install plainhtml

Example

>>> import plainhtml
>>> html = "<html><body><p>foo</p><p>bar</p></body></html>"
>>> plainhtml.extract_text(html)
'foo\n\nbar'

About

Extract plain text from HTML

License:MIT License


Languages

Language:HTML 93.0%Language:Python 7.0%