Listract
Listract = List + Extract. Structural list extraction from raw HTML: decide whether the page is a list, identify the main list container, and return cleaned entries as one shared JSON model.
The Python package bundles the extraction model. No separate model download is required.
Install
pip install listract
Requires Python 3.9 or newer.
Quickstart
from listract import ListExtractor
extractor = ListExtractor()
result = extractor.extract_html(html)
print(result["status"]) # list / no_list
print(result["action"]) # e.g. fast_list
print(result["entries"]) # cleaned list entries
ListExtractor() loads the bundled model from inside the wheel. Set LIST_EXTRACT_MODEL_DIR only when overriding it with a custom model.
What it returns
Listract returns a shared JSON contract covering:
- page-level
status(list/no_list) - production
action - the selected list container
- cleaned entries and their links
- manifest and verification helpers
Links
- Repository: https://github.com/isesword/Listract
- Documentation: https://isesword.github.io/Listract/
- Chinese README: https://github.com/isesword/Listract/blob/main/README.zh-CN.md
- Issues: https://github.com/isesword/Listract/issues
License
MIT
Metadata
Release files for listract 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| listract-0.1.0.tar.gz | 1.8 MB | Without provenance | Details for listract-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| listract-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for listract-0.1.0-py3-none-any.whl |
Total release size: 3.8 MB
Release files / listract-0.1.0.tar.gz
| Download URL | listract-0.1.0.tar.gz |
|---|---|
| Size | 1.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0976b57b73f24aa3c5e5548c610503bfd871ab757fa23aa7ddccd834075d2b0
|
|
BLAKE2b-256 checksum How to use checksums |
69bbd785bc188717816de0b89728dbf457695a42df12562bd9dcea6c0e12e384
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / listract-0.1.0-py3-none-any.whl
| Download URL | listract-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d642ee162a9aa18aa069d1b00027a76c40d04c47a28f436592d06c25748a995
|
|
BLAKE2b-256 checksum How to use checksums |
14f448875f8f49c3b9ae11873b82c3f8bcbf0749a9b7326e93e24d5b5283776c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for listract 0.1.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.