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.1.tar.gz
(5.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.1.tar.gz.
File metadata
- Download URL: selectorllm-0.0.1.tar.gz
- Upload date:
- Size: 5.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 |
5e00763a069ce2f3b53f751bb1076d723697deb4d6d8bbaf6347a75398747b0c
|
|
| MD5 |
35e26e5a1ad84c8b6225a7ef82b5770c
|
|
| BLAKE2b-256 |
cd0494f0d7abbd167b6223a225344b1e8060b8e87372217484775bfa0ddf2555
|
File details
Details for the file selectorllm-0.0.1-py3-none-any.whl.
File metadata
- Download URL: selectorllm-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.4 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 |
4f89effda469371ca4d03b6848509a76d195919374cd50867bb8190b6ad86847
|
|
| MD5 |
37806f047d4ed9bc529a0b3ef9081271
|
|
| BLAKE2b-256 |
57f59af34a03c911095e3cd5ad837dd91cbbe37fdab9919399f9b049e3074406
|