Extract product data from e-commerce websites.
# Extract all products
curllm "https://ceneo.pl" -d "Extract all products with prices"
# Filter by price
curllm "https://ceneo.pl" -d "Extract products under $100"
| File | Description |
|---|---|
extract_products.py |
Python extraction example |
extract_products.sh |
Bash CLI example |
curl_api.sh |
REST API example |
from curllm_core import CurllmExecutor, LLMConfig
async def extract_products():
executor = CurllmExecutor(LLMConfig(provider="openai/gpt-4o-mini"))
result = await executor.execute_workflow(
instruction="Extract all products with name, price, and image URL",
url="https://ceneo.pl"
)
return result.get("result", {}).get("products", [])
{
"products": [
{"name": "Product 1", "price": 29.99, "image": "https://..."},
{"name": "Product 2", "price": 49.99, "image": "https://..."}
]
}