Extract text from HTML
76.40 KB
built 2026-10-17 10:39:17 GMT
Description
How is html_text different from .xpath('//text()') from LXML
or .get_text() from Beautiful Soup?
- Text extracted with html_text does not contain inline styles,
javascript, comments and other text that is not normally visible
to users;
- html_text normalizes whitespace, but in a way smarter than
.xpath('normalize-space()), adding spaces around inline elements
(which are often used as block elements in html markup), and trying
to avoid adding extra spaces for punctuation;
- html-text can add newlines (e.g. after headers or paragraphs), so
that the output text looks more like how it is rendered in browsers.
Dependencies
13 totalRequires12
- pyproject-rpm-macros
- python3-devel
- python3-devel
- python3dist(lxml)
- python3dist(lxml-html-clean)
- python3dist(packaging)
- python3dist(pip) >= 19
- python3dist(pytest)
- python3dist(setuptools) >= 40.8
- rpmlib(CompressedFileNames) <= 3.0.4-1
- rpmlib(DynamicBuildRequires) <= 4.15.0-1
- rpmlib(FileDigests) <= 4.6.0-1
Provides1
- python3-html-text = 0.6.2-9.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances
Files
2Name ![]() |
Size |
|---|---|
| html-text-0.6.2.tar.gz | 51.95 KB |
| python-html-text.spec | 2.60 KB |
Files 1–2 of 2
Component of
buildroots that installed this RPMNo Buildroots
