Skip to main content

pyhtmltext

pyhtmltext is a usefull and flexible tool for extracting text from html.

Help

See documentation for more details.

Installation

  pip install pyhtmltext

Simple usage

  from pyhtmltext import Extractor


  html_string = '''<h2 class="widget-title"><span aria-hidden="true" class="icon-get-started"></span>Getting Started</h2><p>Python can be easy to pick up whether you're a first time programmer or you're experienced with other languages. The following pages are a useful first step to get on your way writing programs with Python!</p>'''

  extractor = Extractor(html=html_string)

  # Extracting whole text from html with separator
  extractor.extract_text()
  #> "Getting Started|separator|Python can be easy to pick up whether you're a first time programmer or you're experienced with other languages. The following pages are a useful first step to get on your way writing programs with Python!"

  # Extracting sentences from html
  extractor.extract_sentences()
  #> ['Getting Started', "Python can be easy to pick up whether you're a first time programmer or you're experienced with other languages.", 'The following pages are a useful first step to get on your way writing programs with Python!']

Metadata

Release files for pyhtmltext 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyhtmltext 0.1
File Size Uploaded Provenance Actions
pyhtmltext-0.1.tar.gz 4.5 kB Without provenance Details for pyhtmltext-0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyhtmltext 0.1
File Interpreter ABI Platform Actions
pyhtmltext-0.1-py3-none-any.whl Python 3 none any Details for pyhtmltext-0.1-py3-none-any.whl

Total release size: 9.7 kB

Release files / pyhtmltext-0.1.tar.gz

Download URL pyhtmltext-0.1.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b7dfd1cf60227b3072a6cbd73e7d67085d7ca8022e42f95ae16a39911053927d
BLAKE2b-256 checksum
How to use checksums
6a4ecbccf033f2a8b7c4f77d85dd4d14e450a4722d8c49753d79d95e6a6f8eb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release files / pyhtmltext-0.1-py3-none-any.whl

Download URL pyhtmltext-0.1-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18b1f4d528ca9eb4bf09d789f82cfecc82e35436961284228b5639d39e1e588d
BLAKE2b-256 checksum
How to use checksums
085d0feba8103f73308409baba425f471f763087d281700a5384cd181bc7709d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Security for pyhtmltext 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page