Skip to content

Commit 9f98553

Browse files
VinciGit00claude
andcommitted
refactor: rename --location-geo-code to --country in search
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c1c8642 commit 9f98553

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ just-scrape search <query> # AI-powered web s
136136
just-scrape search <query> --num-results <n> # Sources to scrape (1-20, default 3)
137137
just-scrape search <query> -p <prompt> # Extraction prompt for results
138138
just-scrape search <query> --schema <json> # Enforce output schema
139-
just-scrape search <query> --location-geo-code <code> # Geo-target search (e.g. 'us', 'de', 'jp-tk')
139+
just-scrape search <query> --country <code> # Geo-target search (e.g. 'us', 'de', 'jp')
140140
just-scrape search <query> --time-range <range> # past_hour | past_24_hours | past_week | past_month | past_year
141141
just-scrape search <query> --format <markdown|html> # Result format (default markdown)
142142
just-scrape search <query> --headers <json>
@@ -149,7 +149,7 @@ just-scrape search <query> --headers <json>
149149
just-scrape search "What are the best Python web frameworks in 2025?" --num-results 10
150150

151151
# Recent news only, scoped to Germany
152-
just-scrape search "EU AI act latest news" --time-range past_week --location-geo-code de
152+
just-scrape search "EU AI act latest news" --time-range past_week --country de
153153

154154
# Structured output with schema
155155
just-scrape search "Top 5 cloud providers pricing" \
@@ -302,7 +302,7 @@ Commands have been renamed to match the v2 API:
302302
| `markdownify` | `markdownify` | Now wraps `scrape --format markdown` |
303303
| `scrape` | `scrape` | Gains `--format` (markdown, html, screenshot, branding, links, images, summary, json), multi-format via comma, `--html-mode`, `--scrolls`, `--prompt`, `--schema` |
304304
| `crawl` | `crawl` | New options: `--max-depth`, `--max-links-per-page`, `--allow-external`, `--format` |
305-
| `search` | `search` | New options: `--location-geo-code`, `--time-range`, `--format` |
305+
| `search` | `search` | New options: `--country`, `--time-range`, `--format` |
306306
| `--stealth` flag | `--stealth` | Separate boolean flag; fetch mode is now `auto`, `fast`, or `js` |
307307
| `agentic-scraper` || Removed from API |
308308
| `generate-schema` || Removed from API |

src/commands/search.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ export default defineCommand({
2323
description: "Number of websites to scrape (1-20, default 3)",
2424
},
2525
schema: { type: "string", description: "Output JSON schema (as JSON string)" },
26-
"location-geo-code": {
26+
country: {
2727
type: "string",
28-
description: "Geo-location code for search (e.g. 'us', 'de', 'jp-tk')",
28+
description: "Country code for geo-targeted search (e.g. 'us', 'de', 'jp')",
2929
},
3030
"time-range": {
3131
type: "string",
@@ -48,7 +48,7 @@ export default defineCommand({
4848
if (args["num-results"]) searchOptions.numResults = Number(args["num-results"]);
4949
if (args.schema) searchOptions.schema = JSON.parse(args.schema);
5050
if (args.prompt) searchOptions.prompt = args.prompt;
51-
if (args["location-geo-code"]) searchOptions.locationGeoCode = args["location-geo-code"];
51+
if (args.country) searchOptions.country = args.country;
5252
if (args["time-range"]) searchOptions.timeRange = args["time-range"];
5353
if (args.format) searchOptions.format = args.format;
5454
if (args.headers) searchOptions.fetchConfig = { headers: JSON.parse(args.headers) };

0 commit comments

Comments
 (0)