Skip to main content

jusText

Run tests

Program jusText is a tool for removing boilerplate content, such as navigation links, headers, and footers from HTML pages. It is designed to preserve mainly text containing full sentences and it is therefore well suited for creating linguistic resources such as Web corpora. You can try it online.

This is a fork of original (currently unmaintained) code of jusText hosted on Google Code.

Adaptations of the algorithm to other languages:

Some libraries using jusText:

Some currently (Jan 2020) maintained alternatives:

Installation

Make sure you have Python 3.8+ and pip (Windows, Linux) installed. Run simply:

$ pip install justext

Dependencies

lxml (version depends on your Python version)

Usage

$ python -m justext -s Czech -o text.txt http://www.zdrojak.cz/clanky/automaticke-zabezpeceni/
$ python -m justext -s English -o plain_text.txt english_page.html
$ python -m justext --help # for more info

Python API

import requests
import justext

response = requests.get("http://planet.python.org/")
paragraphs = justext.justext(response.content, justext.get_stoplist("English"))
for paragraph in paragraphs:
    if not paragraph.is_boilerplate:
        print(paragraph.text)

Development

Install uv and run tests and the linter via

$ uv run pytest
$ uv run ruff check

Acknowledgements

This software has been developed at the Natural Language Processing Centre of Masaryk University in Brno with a financial support from PRESEMT and Lexical Computing Ltd. It also relates to PhD research of Jan Pomikálek.

Metadata

Release files for jusText 4.0.0

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

Source distribution (sdist)

Source distribution for jusText 4.0.0
File Size Uploaded Provenance Actions
justext-4.0.0.tar.gz 821.1 kB Without provenance Details for justext-4.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.6 MB

Release files / justext-4.0.0.tar.gz

Download URL justext-4.0.0.tar.gz
Size 821.1 kB
Tags Source
SHA-256 checksum
How to use checksums
13b7bb95fef64527525a4180afb49a6c92e6c438264b65c72d53d86794dc01c8
BLAKE2b-256 checksum
How to use checksums
d5118cdab2f8be0f9a3969293e27fc15013354529866f00f9e2f787c36a3bb1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / justext-4.0.0-py3-none-any.whl

Download URL justext-4.0.0-py3-none-any.whl
Size 812.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b0819cda3744962be1985076bc8e3e3406145333d7e6af4284edc7801ea5f83
BLAKE2b-256 checksum
How to use checksums
c5829402bf9e0b0bcbd4fe13e2e41071ad59810d1a6d6977870bc1b3d2fddc4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for jusText 4.0.0

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.

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