Mon, 16 Nov 2026 12:55:20 UTC Log in
Extract text from HTML 20.31 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 total
Requires8
  • python(abi) = 3.15
  • python3.15dist(lxml)
  • python3.15dist(lxml-html-clean)
  • rpmlib(CompressedFileNames) <= 3.0.4-1
  • rpmlib(FileDigests) <= 4.6.0-1
  • rpmlib(PartialHardlinkSets) <= 4.0.4-1
  • rpmlib(PayloadFilesHavePrefix) <= 4.0-1
  • rpmlib(PayloadIsZstd) <= 5.4.18-1
Provides5
  • python-html-text = 0.6.2-9.fc45
  • python3-html-text = 0.6.2-9.fc45
  • python3.15-html-text = 0.6.2-9.fc45
  • python3.15dist(html-text) = 0.6.2
  • python3dist(html-text) = 0.6.2
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances

Files

17
Files 1–17 of 17

Component of

buildroots that installed this RPM
Buildroot descending sort Created State
f45-build-33044-665 2026-10-17 13:40:48 expired
f45-build-32664-661 2026-10-17 13:03:13 expired
Buildroots 1–2 of 2