# Basic extraction
just-scrape extract https://news.ycombinator.com \
-p "Extract the top 10 story titles and their URLs"
# Enforce a strict output schema
just-scrape extract https://news.example.com \
-p "Get all article headlines and dates" \
--schema '{"type":"object","properties":{"articles":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"date":{"type":"string"}}}}}}'
# Scroll to load more content, then extract
just-scrape extract https://store.example.com/shoes \
-p "Extract all product names, prices, and ratings" \
--scrolls 5
# Bypass anti-bot protection (costs +5 credits)
just-scrape extract https://app.example.com/dashboard \
-p "Extract user stats" \
--stealth
# Pass cookies and custom headers
just-scrape extract https://example.com/protected \
-p "Extract the protected content" \
--cookies '{"session": "abc123"}' \
--headers '{"X-Custom-Header": "value"}'