Skip to main content

HTML simplification and intelligent extraction for LLM

Project description

html-reader-llm

HTML simplification and intelligent extraction for LLM.

Features

  • HTML simplification for LLM consumption
  • Render detection (HTTP vs Chrome)
  • LLM-powered page classification and CSS selector generation
  • CSS selector validation

Installation

pip install html-reader-llm

Usage

# Simplify HTML
html-reader-llm simplify < page.html

# Detect if browser rendering is needed
html-reader-llm detect https://example.com

# Full analysis with LLM
html-reader-llm analyze https://example.com

# Fetch HTML
html-reader-llm fetch https://example.com

# Validate CSS selectors
html-reader-llm validate https://example.com --rules-file selectors.json

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

html_reader_llm-0.0.1.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

html_reader_llm-0.0.1-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

File details

Details for the file html_reader_llm-0.0.1.tar.gz.

File metadata

  • Download URL: html_reader_llm-0.0.1.tar.gz
  • Upload date:
  • Size: 23.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.3

File hashes

Hashes for html_reader_llm-0.0.1.tar.gz
Algorithm Hash digest
SHA256 45678d5720e91ae779f091de57ef985ea66acdf76adfb9b2f42e5e823551a175
MD5 6452456741d203ff0fce006c3aa1f161
BLAKE2b-256 22cb77d546086dad4c684e2d2b1576d1854fc0cc5994ebf401b91cff833132a0

See more details on using hashes here.

File details

Details for the file html_reader_llm-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for html_reader_llm-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 22437cb4db4e60dc56cffb6af49eeb54a648cb7f14a3ba5a468652b207f9f145
MD5 04c2258c815116abfeb283e8172c9f35
BLAKE2b-256 324570c84d1dac8d30249339bd31fa4b859ec79b7204151f25d9dc8a901575a9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page