@mrscraper/sdk 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -179,9 +179,9 @@ const scraper = await createAiScraper({
|
|
|
179
179
|
| `message` | `string` | No | `""` | Natural-language instructions (general/listing agents) |
|
|
180
180
|
| `agent` | `"general" \| "listing" \| "map"` | No | `"general"` | Agent type |
|
|
181
181
|
| `proxyCountry` | `string \| null` | No | — | Two-letter proxy country code (general/listing) |
|
|
182
|
-
| `maxDepth` | `number` | No | `2` | Max crawl depth
|
|
183
|
-
| `maxPages` | `number` | No | `50` | Max pages to crawl
|
|
184
|
-
| `limit` | `number` | No | `1000` | Max results to return
|
|
182
|
+
| `maxDepth` | `number` | No | `2` | Max crawl depth (map agent) |
|
|
183
|
+
| `maxPages` | `number` | No | `50` | Max pages to crawl (map agent) |
|
|
184
|
+
| `limit` | `number` | No | `1000` | Max results to return (map agent) |
|
|
185
185
|
| `includePatterns` | `string` | No | `""` | URL patterns to include (map agent) |
|
|
186
186
|
| `excludePatterns` | `string` | No | `""` | URL patterns to exclude (map agent) |
|
|
187
187
|
| `token` | `string` | No | — | Overrides the `MRSCRAPER_API_TOKEN` environment variable |
|
|
@@ -212,11 +212,11 @@ const result = await rerunAiScraper({
|
|
|
212
212
|
|-----------|------|----------|---------|-------------|
|
|
213
213
|
| `scraperId` | `string` | Yes | — | ID of the AI scraper to rerun |
|
|
214
214
|
| `url` | `string` | Yes | — | New URL to scrape |
|
|
215
|
-
| `maxDepth` | `number` | No | `2` | Max crawl depth (
|
|
216
|
-
| `maxPages` | `number` | No | `50` | Max pages (
|
|
217
|
-
| `limit` | `number` | No | `1000` | Max results (
|
|
218
|
-
| `includePatterns` | `string` | No | `""` | URL patterns to include |
|
|
219
|
-
| `excludePatterns` | `string` | No | `""` | URL patterns to exclude |
|
|
215
|
+
| `maxDepth` | `number` | No | `2` | Max crawl depth (map agent) |
|
|
216
|
+
| `maxPages` | `number` | No | `50` | Max pages to process (map and listing agent) |
|
|
217
|
+
| `limit` | `number` | No | `1000` | Max results limit (map agent) |
|
|
218
|
+
| `includePatterns` | `string` | No | `""` | URL patterns to include (map agent) |
|
|
219
|
+
| `excludePatterns` | `string` | No | `""` | URL patterns to exclude (map agent) |
|
|
220
220
|
| `token` | `string` | No | — | Overrides the `MRSCRAPER_API_TOKEN` environment variable |
|
|
221
221
|
|
|
222
222
|
**Returns:** `Promise<unknown>` — the API response object.
|
|
@@ -418,7 +418,7 @@ import type {
|
|
|
418
418
|
```
|
|
419
419
|
## Compliance & Legal Risk
|
|
420
420
|
> **WARNING**
|
|
421
|
-
> Scraping login-protected pages carries serious legal and compliance risks. Many websites explicitly prohibit automated access in their Terms of Service, and bypassing authentication to scrape content may expose you to legal action including lawsuits, account termination, and financial penalties. By proceeding on scraping login-protected pages, you confirm that you have read and understood the target website's Terms of Service, and you fully accept all legal, financial, and ethical responsibility for your actions.
|
|
421
|
+
> Scraping login-protected pages carries serious legal and compliance risks. Many websites explicitly prohibit automated access in their Terms of Service, and bypassing authentication to scrape content may expose you to legal action including lawsuits, account termination, and financial penalties. By proceeding on scraping login-protected pages, you confirm that you have read and understood the target website's Terms of Service, and you fully accept all legal, financial, and ethical responsibility for your actions.
|
|
422
422
|
---
|
|
423
423
|
|
|
424
424
|
## License
|
package/package.json
CHANGED