Skip to main content

Selector llm logo

selectorllm

Generate CSS/XPath selectors from natural language using LLMs. Extract HTML data without writing selectors manually.


自然言語でHTMLセレクタを生成 - LLMによる自動抽出

Usage

from selectorllm.main import get_selector

html = """<html>...</html>"""
query = "Extract link texts."

selector = get_selector(
    query,
    html,
    model="openrouter/openai/gpt-5", # Any LiteLLM-compatible model name
    selector_type="css"               # "css" or "xpath"
)

print(selector)  # example: "body > div > a"

Metadata

Release files for selectorllm 0.0.2

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

Source distribution (sdist)

Source distribution for selectorllm 0.0.2
File Size Uploaded Provenance Actions
selectorllm-0.0.2.tar.gz 681.4 kB Without provenance Details for selectorllm-0.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 683.6 kB

Release files / selectorllm-0.0.2.tar.gz

Download URL selectorllm-0.0.2.tar.gz
Size 681.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6189ef8b217d84f494a223392941e91c384ea5c2b5daa201cd7d2bea8bd8d4c4
BLAKE2b-256 checksum
How to use checksums
a5e49adb425dc0e9f40af4bbef8f4aa4242925d47ef97a651d923c11aa4fa384
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.5

Release files / selectorllm-0.0.2-py3-none-any.whl

Download URL selectorllm-0.0.2-py3-none-any.whl
Size 2.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c050b3400cbdb28fc0f9ee34317f2d5ca979e9a380527bb0a4cfc7e1764a266c
BLAKE2b-256 checksum
How to use checksums
80e206661bbd9000602729eab5b01d4eedd5b1c4a832ba226e3983d5545bf574
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.5

Security for selectorllm 0.0.2

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.0.2 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