@spider-cloud/spider-client 0.1.37 → 0.1.38
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 +33 -0
- 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
|
*/
|
|
@@ -381,6 +395,25 @@ export interface SpiderParams {
|
|
|
381
395
|
* targeting websites with minimal anti-bot protections.
|
|
382
396
|
*/
|
|
383
397
|
lite_mode?: boolean;
|
|
398
|
+
/**
|
|
399
|
+
* Proxy pool selection for outbound request routing.
|
|
400
|
+
* Choose a pool based on your use case (e.g., stealth, speed, or stability).
|
|
401
|
+
*
|
|
402
|
+
* - 'residential' → cost-effective entry-level residential pool
|
|
403
|
+
* - 'residential_fast' → faster residential pool for higher throughput
|
|
404
|
+
* - 'residential_static' → static residential IPs, rotated daily
|
|
405
|
+
* - 'mobile' → 4G/5G mobile proxies for maximum evasion
|
|
406
|
+
* - 'isp' → ISP-grade residential (alias: 'datacenter')
|
|
407
|
+
* - 'residential_premium' → low-latency premium IPs
|
|
408
|
+
* - 'residential_core' → balanced plan (quality vs. cost)
|
|
409
|
+
* - 'residential_plus' → largest and highest quality core pool
|
|
410
|
+
*/
|
|
411
|
+
proxy?: Proxy;
|
|
412
|
+
/**
|
|
413
|
+
* Use a remote proxy at ~70% reduced cost for file downloads.
|
|
414
|
+
* This requires bringing your own proxy (e.g., static IP tunnel).
|
|
415
|
+
*/
|
|
416
|
+
remote_proxy?: string;
|
|
384
417
|
}
|
|
385
418
|
export type SpiderCoreResponse = {
|
|
386
419
|
content?: string;
|