Extract plain text from HTML
Project description
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'
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
plainhtml-0.2.2.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file plainhtml-0.2.2.tar.gz
.
File metadata
- Download URL: plainhtml-0.2.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.6 Linux/6.5.0-27-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e54f5f0f6203e56e45583dfcc33b408211582a0089c9370e32386225407a69f |
|
MD5 | 3c539db09c382bc355501580ac0ac8b4 |
|
BLAKE2b-256 | 30a5c7cb3ddb877a0253abc1f6f1ebb34996b1c6e408bfddf939c3decd3c3e8e |
File details
Details for the file plainhtml-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: plainhtml-0.2.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.6 Linux/6.5.0-27-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | caa04e5017522f080b136e237a00e66894b4747d4ed40165bd597569f7d4d9ef |
|
MD5 | 9d11ee6e11de8915fe2864ceb79c170e |
|
BLAKE2b-256 | 8fbf7a435c09a960db4d49ecd543a22a2678e3ce459001b899e101d84e330af1 |