@@ -104,7 +104,7 @@ Extract structured data from any URL using AI (replaces `smart-scraper`). [docs]
104104just-scrape extract < url> -p < prompt> # Extract data with AI
105105just-scrape extract < url> -p < prompt> --schema < json> # Enforce output schema
106106just-scrape extract < url> -p < prompt> --scrolls < n> # Infinite scroll (0-100)
107- just-scrape extract < url> -p < prompt> --mode direct+ stealth # Anti-bot bypass
107+ just-scrape extract < url> -p < prompt> --mode js -- stealth # Anti-bot bypass
108108just-scrape extract < url> -p < prompt> --cookies < json> --headers < json>
109109just-scrape extract < url> -p < prompt> --country < iso> # Geo-targeting
110110```
@@ -120,9 +120,9 @@ just-scrape extract https://news.example.com -p "Get all article headlines and d
120120 --schema ' {"type":"object","properties":{"articles":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"date":{"type":"string"}}}}}}' \
121121 --scrolls 5
122122
123- # Scrape a JS-heavy SPA behind anti-bot protection
123+ # Scrape a JS-heavy SPA with stealth mode
124124just-scrape extract https://app.example.com/dashboard -p " Extract user stats" \
125- --mode js+ stealth
125+ --mode js -- stealth
126126```
127127
128128## Search
@@ -139,6 +139,7 @@ just-scrape search <query> --schema <json> # Enforce output s
139139just-scrape search < query> --location-geo-code < code> # Geo-target search (e.g. 'us', 'de', 'jp-tk')
140140just-scrape search < query> --time-range < range> # past_hour | past_24_hours | past_week | past_month | past_year
141141just-scrape search < query> --format < markdown| html> # Result format (default markdown)
142+ just-scrape search < query> --nationality < iso> # 2-letter ISO nationality code
142143just-scrape search < query> --headers < json>
143144```
144145
@@ -174,7 +175,7 @@ just-scrape scrape <url> -f json -p <prompt> # Structured JSON via
174175just-scrape scrape < url> -f markdown,links,images # Multi-format (comma-separated)
175176just-scrape scrape < url> --html-mode reader # normal (default), reader, or prune
176177just-scrape scrape < url> --scrolls < n> # Infinite scroll (0-100)
177- just-scrape scrape < url> -m direct+ stealth # Anti-bot bypass
178+ just-scrape scrape < url> -m js -- stealth # Anti-bot bypass
178179just-scrape scrape < url> --country < iso> # Geo-targeting
179180```
180181
@@ -193,8 +194,8 @@ just-scrape scrape https://example.com -f markdown,links,images
193194# Structured JSON output with a prompt
194195just-scrape scrape https://store.example.com -f json -p " Extract product name and price"
195196
196- # Scrape with anti-bot bypass and geo-targeting
197- just-scrape scrape https://store.example.com -m direct+ stealth --country DE
197+ # Scrape with stealth mode and geo-targeting
198+ just-scrape scrape https://store.example.com -- stealth --country DE
198199```
199200
200201## Markdownify
@@ -205,7 +206,7 @@ Convert any webpage to clean markdown (convenience wrapper for `scrape --format
205206
206207``` bash
207208just-scrape markdownify < url> # Convert to markdown
208- just-scrape markdownify < url> -m direct+ stealth # Anti-bot bypass
209+ just-scrape markdownify < url> -m js -- stealth # Anti-bot bypass
209210just-scrape markdownify < url> --headers < json> # Custom headers
210211```
211212
@@ -216,7 +217,7 @@ just-scrape markdownify <url> --headers <json> # Custom headers
216217just-scrape markdownify https://blog.example.com/my-article
217218
218219# Convert a JS-rendered page behind Cloudflare
219- just-scrape markdownify https://protected.example.com -m js+ stealth
220+ just-scrape markdownify https://protected.example.com -m js -- stealth
220221
221222# Pipe markdown to a file
222223just-scrape markdownify https://docs.example.com/api --json | jq -r ' .markdown' > api-docs.md
@@ -235,7 +236,7 @@ just-scrape crawl <url> --max-depth <n> # Crawl depth (default 2)
235236just-scrape crawl < url> --max-links-per-page < n> # Links per page (default 10)
236237just-scrape crawl < url> --allow-external # Allow external domains
237238just-scrape crawl < url> -f html # Page format (default markdown)
238- just-scrape crawl < url> -m direct+ stealth # Anti-bot bypass
239+ just-scrape crawl < url> -m js -- stealth # Anti-bot bypass
239240```
240241
241242### Examples
@@ -303,7 +304,7 @@ Commands have been renamed to match the v2 API:
303304| ` scrape ` | ` scrape ` | Gains ` --format ` (markdown, html, screenshot, branding, links, images, summary, json), multi-format via comma, ` --html-mode ` , ` --scrolls ` , ` --prompt ` , ` --schema ` |
304305| ` crawl ` | ` crawl ` | New options: ` --max-depth ` , ` --max-links-per-page ` , ` --allow-external ` , ` --format ` |
305306| ` search ` | ` search ` | New options: ` --location-geo-code ` , ` --time-range ` , ` --format ` |
306- | ` --stealth ` flag | ` --mode direct+ stealth ` | Fetch mode enum replaces boolean ( ` auto ` , ` fast ` , ` js ` , ` direct+stealth ` , ` js+stealth ` ) |
307+ | ` --stealth ` flag | ` --stealth ` | Separate boolean flag; fetch mode is now ` auto ` , ` fast ` , or ` js ` |
307308| ` agentic-scraper ` | — | Removed from API |
308309| ` generate-schema ` | — | Removed from API |
309310| ` sitemap ` | — | Removed from API |
0 commit comments