@spider-cloud/spider-client 0.1.37 → 0.1.39
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 +40 -1
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -164,6 +164,20 @@ export declare enum RedirectPolicy {
|
|
|
164
164
|
Loose = "Loose",
|
|
165
165
|
Strict = "Strict"
|
|
166
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* Proxy pool selection for outbound request routing.
|
|
169
|
+
* Choose a pool based on your use case (e.g., stealth, speed, or stability).
|
|
170
|
+
*
|
|
171
|
+
* - 'residential' → cost-effective entry-level residential pool
|
|
172
|
+
* - 'residential_fast' → faster residential pool for higher throughput
|
|
173
|
+
* - 'residential_static' → static residential IPs, rotated daily
|
|
174
|
+
* - 'mobile' → 4G/5G mobile proxies for maximum evasion
|
|
175
|
+
* - 'isp' → ISP-grade residential (alias: 'datacenter')
|
|
176
|
+
* - 'residential_premium' → low-latency premium IPs
|
|
177
|
+
* - 'residential_core' → balanced plan (quality vs. cost)
|
|
178
|
+
* - 'residential_plus' → largest and highest quality core pool
|
|
179
|
+
*/
|
|
180
|
+
export type Proxy = "residential" | "residential_fast" | "residential_static" | "mobile" | "isp" | "residential_premium" | "residential_core" | "residential_plus";
|
|
167
181
|
/**
|
|
168
182
|
* Represents the options available for making a spider request.
|
|
169
183
|
*/
|
|
@@ -277,7 +291,7 @@ export interface SpiderParams {
|
|
|
277
291
|
*/
|
|
278
292
|
readability?: boolean;
|
|
279
293
|
/**
|
|
280
|
-
* 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.
|
|
281
295
|
*/
|
|
282
296
|
proxy_enabled?: boolean;
|
|
283
297
|
/**
|
|
@@ -381,6 +395,31 @@ export interface SpiderParams {
|
|
|
381
395
|
* targeting websites with minimal anti-bot protections.
|
|
382
396
|
*/
|
|
383
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;
|
|
404
|
+
/**
|
|
405
|
+
* Proxy pool selection for outbound request routing.
|
|
406
|
+
* Choose a pool based on your use case (e.g., stealth, speed, or stability).
|
|
407
|
+
*
|
|
408
|
+
* - 'residential' → cost-effective entry-level residential pool
|
|
409
|
+
* - 'residential_fast' → faster residential pool for higher throughput
|
|
410
|
+
* - 'residential_static' → static residential IPs, rotated daily
|
|
411
|
+
* - 'mobile' → 4G/5G mobile proxies for maximum evasion
|
|
412
|
+
* - 'isp' → ISP-grade residential (alias: 'datacenter')
|
|
413
|
+
* - 'residential_premium' → low-latency premium IPs
|
|
414
|
+
* - 'residential_core' → balanced plan (quality vs. cost)
|
|
415
|
+
* - 'residential_plus' → largest and highest quality core pool
|
|
416
|
+
*/
|
|
417
|
+
proxy?: Proxy;
|
|
418
|
+
/**
|
|
419
|
+
* Use a remote proxy at ~70% reduced cost for file downloads.
|
|
420
|
+
* This requires bringing your own proxy (e.g., static IP tunnel).
|
|
421
|
+
*/
|
|
422
|
+
remote_proxy?: string;
|
|
384
423
|
}
|
|
385
424
|
export type SpiderCoreResponse = {
|
|
386
425
|
content?: string;
|