curllm

curllm Examples

This directory contains organized examples demonstrating curllm capabilities.

📁 Structure

examples/
├── basic/                   # Simple CLI and curl examples
├── currency/                # Currency translation for price filters
├── detection/               # Dynamic container & pattern detection
├── orchestration/           # Multi-strategy extraction orchestration
├── extraction/              # Data extraction examples
│   ├── products/           # Product scraping
│   └── links/              # Link extraction
├── forms/                   # Form automation examples
│   ├── contact/            # Contact form filling
│   └── login/              # Login automation
├── llm-providers/           # Multi-provider LLM examples
├── bql/                     # Browser Query Language examples
├── streamware/              # Streamware component examples
└── api-clients/             # API client examples (Node.js, PHP, etc.)

🚀 Quick Start

# Using CLI
curllm "https://example.com" -d "Extract all links"

# Using Python
python examples/extraction/links/extract_links.py

2. Extract Products

# CLI with price filter
curllm "https://ceneo.pl" -d "Extract products under $100"

# Python
python examples/extraction/products/extract_products.py

3. Fill Contact Form

# CLI
curllm "https://example.com/contact" -d "Fill form: name=John Doe, email=john@example.com"

# Python
python examples/forms/contact/fill_form.py

4. Use Different LLM Providers

from curllm_core import CurllmExecutor, LLMConfig

# OpenAI
executor = CurllmExecutor(LLMConfig(provider="openai/gpt-4o-mini"))

# Anthropic
executor = CurllmExecutor(LLMConfig(provider="anthropic/claude-3-haiku-20240307"))

# Gemini
executor = CurllmExecutor(LLMConfig(provider="gemini/gemini-2.0-flash"))

# Local Ollama (default)
executor = CurllmExecutor(LLMConfig(provider="ollama/qwen2.5:7b"))

📖 Example Projects

Project Description Files
basic Simple CLI and curl examples Bash
currency Currency translation ($100 → 405 zł) Python
detection Dynamic container & LLM heuristics Python
orchestration Multi-strategy extraction Python
extraction/products Product data extraction Python, Bash
extraction/links Link extraction Python, Bash
forms/contact Contact form filling Python, Bash
forms/login Login automation Python, Bash
llm-providers Multi-provider LLM usage Python
bql Browser Query Language Python, Bash
streamware Streamware components Python
api-clients API clients (Node.js, PHP) JS, PHP