Add your description here
Project description
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"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
selectorllm-0.0.2.tar.gz
(681.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file selectorllm-0.0.2.tar.gz.
File metadata
- Download URL: selectorllm-0.0.2.tar.gz
- Upload date:
- Size: 681.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6189ef8b217d84f494a223392941e91c384ea5c2b5daa201cd7d2bea8bd8d4c4
|
|
| MD5 |
618232c59eee46013ae68f347bbfb48b
|
|
| BLAKE2b-256 |
a5e49adb425dc0e9f40af4bbef8f4aa4242925d47ef97a651d923c11aa4fa384
|
File details
Details for the file selectorllm-0.0.2-py3-none-any.whl.
File metadata
- Download URL: selectorllm-0.0.2-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c050b3400cbdb28fc0f9ee34317f2d5ca979e9a380527bb0a4cfc7e1764a266c
|
|
| MD5 |
1db53303fea67127d1cc52f0152defe1
|
|
| BLAKE2b-256 |
80e206661bbd9000602729eab5b01d4eedd5b1c4a832ba226e3983d5545bf574
|