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.2.tar.gz (91.0 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.2-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: html_reader_llm-0.0.2.tar.gz
  • Upload date:
  • Size: 91.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.33.1

File hashes

Hashes for html_reader_llm-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1d06bdf86ad7c388b22ccb07c9f429d25f6856607711999128275700b1f436b6
MD5 a1b020ac18957e2824ff15e01d7d807b
BLAKE2b-256 0117c796787bf6f5a0a9ec24dd8b854015dfd788a713b8b2c696f543c023787f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for html_reader_llm-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7dc59657d061666f9a4ef28af15065951c40876a66477b608f6ff380fca37856
MD5 3923cfe4c1f9233cb039005c169b62c8
BLAKE2b-256 564187971b650e6fdee87910c25526bb7b76a4bb6f00ae750a24025b8841c00f

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