Skip to content

Commit c2f904c

Browse files
VinciGit00claude
andcommitted
fix(docs): rename locationGeoCode to country in v2 search docs
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f693225 commit c2f904c

File tree

4 files changed

+7
-20
lines changed

4 files changed

+7
-20
lines changed

sdks/javascript.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ const { data } = await sgai.search(
157157
| options.schema | ZodSchema / object | No | Schema for structured response (requires `prompt`) |
158158
| options.format | string | No | `"markdown"` (default) or `"html"` |
159159
| options.mode | string | No | HTML processing mode: `"normal"`, `"reader"`, `"prune"` (default) |
160-
| options.locationGeoCode | string | No | Two-letter ISO country code for localized search (e.g. `"us"`, `"it"`, `"gb"`) |
160+
| options.country | string | No | Two-letter ISO country code for localized search (e.g. `"us"`, `"it"`, `"gb"`) |
161161
| options.timeRange | string | No | Recency filter: `"past_hour"`, `"past_24_hours"`, `"past_week"`, `"past_month"`, `"past_year"` |
162162
| options.fetchConfig | FetchConfig | No | Fetch configuration |
163163

sdks/python.mdx

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pip install scrapegraph-py
2222
## What's New in v2
2323

2424
- **Renamed methods**: `smartscraper()``extract()`, `searchscraper()``search()`
25-
- **Unified config objects**: `FetchConfig` and `LlmConfig` replace scattered parameters
25+
- **Unified config object**: `FetchConfig` replaces scattered parameters (`render_js`, `stealth`, `wait_ms`, etc.)
2626
- **Namespace methods**: `crawl.start()`, `crawl.status()`, `monitor.create()`, etc.
2727
- **New endpoints**: `credits()`, `history()`, `crawl.stop()`, `crawl.resume()`
2828
- **Removed**: `markdownify()`, `agenticscraper()`, `sitemap()`, `healthz()`, `feedback()`, built-in mock mode
@@ -141,7 +141,7 @@ response = client.search(
141141
| schema | dict | No | JSON schema for structured response (requires `prompt`) |
142142
| format | string | No | `"markdown"` (default) or `"html"` |
143143
| mode | string | No | HTML processing mode: `"normal"`, `"reader"`, `"prune"` (default) |
144-
| location_geo_code | string | No | Geo code for localized results (e.g. `"us"`, `"it"`, `"gb"`) |
144+
| country | string | No | Two-letter ISO country code for localized results (e.g. `"us"`, `"it"`, `"gb"`) |
145145
| time_range | string | No | Recency filter: `"past_hour"`, `"past_24_hours"`, `"past_week"`, `"past_month"`, `"past_year"` |
146146
| fetch_config | FetchConfig | No | Fetch configuration |
147147

@@ -304,7 +304,8 @@ Controls how pages are fetched. See the [proxy configuration guide](/services/ad
304304
from scrapegraph_py import FetchConfig
305305

306306
config = FetchConfig(
307-
mode="js+stealth", # Proxy strategy: auto, fast, js, direct+stealth, js+stealth
307+
mode="js", # Fetch mode: auto, fast, js
308+
stealth=True, # Enable stealth mode (residential proxy, anti-bot headers)
308309
timeout=15000, # Request timeout in ms (1000-60000)
309310
wait=2000, # Wait after page load in ms (0-30000)
310311
scrolls=3, # Number of scrolls (0-100)
@@ -315,20 +316,6 @@ config = FetchConfig(
315316
)
316317
```
317318

318-
### LlmConfig
319-
320-
Controls LLM behavior for format entries that run an LLM (scrape `json` and `summary` formats). Pass it inside the format entry — it is deprecated at the top level of `extract` and `search` in v2 and is ignored by the API.
321-
322-
```python
323-
from scrapegraph_py import LlmConfig
324-
325-
config = LlmConfig(
326-
model="gpt-4o-mini", # LLM model to use
327-
temperature=0.3, # Response creativity (0.0-1.0)
328-
max_tokens=1000, # Maximum response tokens
329-
chunker="auto", # Content chunking strategy ("auto" or custom config)
330-
)
331-
```
332319

333320
## Async Support
334321

services/cli/commands.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ just-scrape search <query>
2525
just-scrape search <query> -p <prompt> # extraction prompt for results
2626
just-scrape search <query> --num-results <n> # sources to scrape (1-20, default 3)
2727
just-scrape search <query> --schema <json>
28-
just-scrape search <query> --location-geo-code <code> # geo-target (e.g. 'us', 'de', 'jp-tk')
28+
just-scrape search <query> --country <code> # geo-target (e.g. 'us', 'de', 'jp-tk')
2929
just-scrape search <query> --time-range <range> # past_hour | past_24_hours | past_week | past_month | past_year
3030
just-scrape search <query> --format <markdown|html> # result format (default markdown)
3131
just-scrape search <query> --headers <json>

services/search.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ curl -X POST https://api.scrapegraphai.com/api/v2/search \
6161
| output_schema | object | No | Pydantic or Zod schema for structured response format (requires `prompt`). |
6262
| format | string | No | Output format: `"markdown"` (default) or `"html"`. |
6363
| mode | string | No | HTML processing mode: `"normal"`, `"reader"`, `"prune"` (default). |
64-
| location_geo_code | string | No | Geo code for localized results (e.g. `"us"`, `"it"`, `"gb"`). In the JS SDK, use `locationGeoCode`. |
64+
| country | string | No | Two-letter ISO country code for localized results (e.g. `"us"`, `"it"`, `"gb"`). |
6565
| time_range | string | No | Recency filter: `"past_hour"`, `"past_24_hours"`, `"past_week"`, `"past_month"`, `"past_year"`. |
6666
| fetch_config | FetchConfig | No | Configuration for page fetching (mode, stealth, headers, etc.). |
6767

0 commit comments

Comments
 (0)