Willhaben CLI
Verified@pasogott
npx machina-cli add skill @pasogott/whcli --openclawwhcli - Willhaben CLI 🏠
Search and browse willhaben.at, Austria's largest classifieds marketplace from the command line.
Installation
Homebrew (recommended)
brew install pasogott/tap/whcli
From source (with uv)
git clone https://github.com/pasogott/whcli.git
cd whcli
uv sync
uv run whcli --help
Commands
Search
# Basic search
whcli search "iphone 15"
# With filters
whcli search "rtx 4090" --category grafikkarten --max-price 1500
# Location filter
whcli search "bicycle" -l Wien -n 20
# Only PayLivery (buyer protection)
whcli search "playstation" --paylivery
# Output as JSON for scripting
whcli search "laptop" --format json
Options:
| Option | Short | Description |
|---|---|---|
--category | -c | Category slug (grafikkarten, smartphones, etc.) |
--min-price | Minimum price in EUR | |
--max-price | Maximum price in EUR | |
--condition | neu, gebraucht, defekt, neuwertig | |
--location | -l | Location/region filter |
--rows | -n | Number of results (default: 30) |
--page | -p | Page number |
--paylivery | Only PayLivery listings | |
--format | -f | table, json, csv |
Show Listing Details
# View listing by ID
whcli show 1993072190
# JSON output
whcli show 1993072190 --format json
Seller Profile
# View seller profile and ratings
whcli seller 29159134
Examples
# Find cheap iPhones in Vienna
whcli search "iphone" -l Wien --max-price 500
# Graphics cards under €1000
whcli search "grafikkarte" --category grafikkarten --max-price 1000
# New condition only
whcli search "ps5" --condition neu
# Export search results as CSV
whcli search "furniture" -l "1220" -n 50 --format csv > results.csv
Common Categories
grafikkarten- Graphics cardssmartphones- Phonesnotebooks-laptops- Laptopsspielkonsolen- Gaming consolesfahrraeder- Bicyclesmoebel- Furniture
Known Limitations
- ⚠️
showcommand has a bug (being fixed) - Location filter works but may include nearby regions
- No OAuth login yet (messaging/watching not available)
Links
- Repository: https://github.com/pasogott/whcli
- Issues: https://github.com/pasogott/whcli/issues
- Homebrew Tap: https://github.com/pasogott/homebrew-tap
Overview
Willhaben CLI (whcli) lets you search willhaben.at from the terminal, browse listings, view details, and check seller profiles. It supports filters like category, price, location, and condition, and can output JSON, CSV, or tables for scripting. This makes price checks and data collection fast and repeatable from scripts.
How This Skill Works
Whcli exposes three commands: search, show, and seller. It queries willhaben.at and returns listings with optional filters such as --category, --min-price, --max-price, --location, and --condition, plus an option for PayLivery. Output formats include table, json, and csv for easy scripting and automation.
When to Use It
- Find iPhones in Vienna under a budget using location and price filters.
- Export a set of results as CSV for inventory tracking or data processing.
- View a specific listing's details quickly by ID to check specs.
- Inspect a seller's profile and ratings before contacting.
- Browse graphics cards within a max price across multiple result pages.
Quick Start
- Step 1: Install whcli via Homebrew or from source (brew install pasogott/tap/whcli).
- Step 2: Run a basic search, e.g., whcli search iphone -l Wien --max-price 500.
- Step 3: View details or seller profile with whcli show <id> or whcli seller <id>.
Best Practices
- Use --format json for API-like scripting and automation.
- Combine filters (--category, --location, --max-price) to narrow results efficiently.
- Use --rows and --page for controlled pagination and batch processing.
- Enable --paylivery to restrict results to buyer-protected listings when needed.
- Cross-check IDs with whcli show or whcli seller to verify details before outreach.
Example Use Cases
- whcli search "iphone" -l Wien --max-price 500
- whcli search "grafikkarte" --category grafikkarten --max-price 1000
- whcli search "ps5" --condition neu
- whcli search "furniture" -l 1220 -n 50 --format csv > results.csv
- whcli show 1993072190 --format json