@spider-cloud/spider-client 0.1.38 → 0.1.40
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/dist/config.d.ts +7 -1
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -291,7 +291,7 @@ export interface SpiderParams {
|
|
|
291
291
|
*/
|
|
292
292
|
readability?: boolean;
|
|
293
293
|
/**
|
|
294
|
-
* Specifies whether to use a proxy for the request.
|
|
294
|
+
* Specifies whether to use a proxy for the request. [Deprecated]: use the 'proxy' param instead.
|
|
295
295
|
*/
|
|
296
296
|
proxy_enabled?: boolean;
|
|
297
297
|
/**
|
|
@@ -395,6 +395,12 @@ export interface SpiderParams {
|
|
|
395
395
|
* targeting websites with minimal anti-bot protections.
|
|
396
396
|
*/
|
|
397
397
|
lite_mode?: boolean;
|
|
398
|
+
/**
|
|
399
|
+
* Set the maximum number of credits to use per page.
|
|
400
|
+
* Credits are measured in decimal units, where 10,000 credits equal one dollar (100 credits per penny).
|
|
401
|
+
* Credit limiting only applies to request that are Javascript rendered using smart_mode or chrome for the 'request' type.
|
|
402
|
+
*/
|
|
403
|
+
max_credits_per_page?: number;
|
|
398
404
|
/**
|
|
399
405
|
* Proxy pool selection for outbound request routing.
|
|
400
406
|
* Choose a pool based on your use case (e.g., stealth, speed, or stability).
|