html-text
Extract text from HTML
Extract text from HTML
To install this package, run one of the following:
============
.. image:: https://img.shields.io/pypi/v/html-text.svg :target: https://pypi.python.org/pypi/html-text :alt: PyPI Version
.. image:: https://img.shields.io/travis/TeamHG-Memex/html-text.svg :target: https://travis-ci.org/TeamHG-Memex/html-text :alt: Build Status
.. image:: http://codecov.io/github/TeamHG-Memex/soft404/coverage.svg?branch=master :target: http://codecov.io/github/TeamHG-Memex/html-text?branch=master :alt: Code Coverage
Extract text from HTML
Install with pip::
pip install html-text
The package depends on lxml, so you might need to install some additional packages: http://lxml.de/installation.html
Extract text from HTML::
>>> import html_text
>>> text = html_text.extract_text(u'<h1>Hey</h1>')
u'Hey'
The code is extracted from utilities used in several projects, written by Mikhail Korobov.
=======
Summary
Extract text from HTML
Information Last Updated
Mar 25, 2025 at 16:23
License
MIT license
Total Downloads
88