Commit bbbe975
feat: add locationGeoCode option to searchScraper for geo-targeted search
Add optional locationGeoCode parameter to the searchScraper function that
allows targeting search results from a specific geographic location. This
implements the API changes from ScrapeGraphAI/sgai-api#384.
- Add locationGeoCode to options destructuring
- Add location_geo_code to API payload when provided
- Update JSDoc documentation
- Update README with parameter documentation and usage example
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 58c3a2a commit bbbe975
2 files changed
Lines changed: 29 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
419 | 441 | | |
420 | 442 | | |
421 | 443 | | |
| |||
1122 | 1144 | | |
1123 | 1145 | | |
1124 | 1146 | | |
| 1147 | + | |
1125 | 1148 | | |
1126 | 1149 | | |
1127 | 1150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
| |||
0 commit comments