Skip to content

Commit 664e8b0

Browse files
committed
chore(types): cleanup proxy types
1 parent ac35865 commit 664e8b0

File tree

13 files changed

+17
-74
lines changed

13 files changed

+17
-74
lines changed

cli/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "spider-cloud-cli"
3-
version = "0.1.79"
3+
version = "0.1.80"
44
edition = "2021"
55
authors = [ "j-mendez <jeff@spider.cloud>"]
66
description = "The Spider Cloud CLI for web crawling and scraping"

cli/src/args.rs

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,10 @@ use serde::{Serialize, Deserialize};
88
pub enum ProxyType {
99
/// Cost-effective entry-level residential pool.
1010
Residential,
11-
/// Higher-throughput residential pool.
12-
ResidentialFast,
13-
/// Static residential IPs, rotated daily.
14-
ResidentialStatic,
1511
/// 4G / 5G mobile proxies for stealth.
1612
Mobile,
1713
/// ISP-grade / datacenter-like routing.
18-
Isp,
19-
/// Premium low-latency residential pool.
20-
ResidentialPremium,
21-
/// Balanced plan (cost vs. quality).
22-
ResidentialCore,
23-
/// Largest, highest-quality IP pool.
24-
ResidentialPlus,
14+
Isp
2515
}
2616

2717
#[derive(Parser, Debug)]
@@ -185,13 +175,8 @@ impl From<ProxyType> for spider_client::ProxyType {
185175
fn from(p: ProxyType) -> Self {
186176
match p {
187177
ProxyType::Residential => Self::Residential,
188-
ProxyType::ResidentialFast => Self::ResidentialFast,
189-
ProxyType::ResidentialStatic => Self::ResidentialStatic,
190178
ProxyType::Mobile => Self::Mobile,
191-
ProxyType::Isp => Self::Isp,
192-
ProxyType::ResidentialPremium => Self::ResidentialPremium,
193-
ProxyType::ResidentialCore => Self::ResidentialCore,
194-
ProxyType::ResidentialPlus => Self::ResidentialPlus,
179+
ProxyType::Isp => Self::Isp
195180
}
196181
}
197182
}

cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use args::{Cli, Commands};
33
use clap::Parser;
44
use keyring::Entry;
55
use serde_json::json;
6-
use spider_client::{QueryRequest, RequestParams, SearchRequestParams, Spider};
6+
use spider_client::{RequestParams, SearchRequestParams, Spider};
77
use std::collections::HashMap;
88
use tokio;
99

javascript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@spider-cloud/spider-client",
3-
"version": "0.1.79",
3+
"version": "0.1.80",
44
"description": "Isomorphic Javascript SDK for Spider Cloud services",
55
"scripts": {
66
"test": "node --import tsx --test __tests__/*test.ts",

javascript/src/config.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -302,23 +302,13 @@ export type EventTracker = {
302302
* Choose a pool based on your use case (e.g., stealth, speed, or stability).
303303
*
304304
* - 'residential' → cost-effective entry-level residential pool
305-
* - 'residential_fast' → faster residential pool for higher throughput
306-
* - 'residential_static' → static residential IPs, rotated daily
307305
* - 'mobile' → 4G/5G mobile proxies for maximum evasion
308306
* - 'isp' → ISP-grade residential (alias: 'datacenter')
309-
* - 'residential_premium' → low-latency premium IPs
310-
* - 'residential_core' → balanced plan (quality vs. cost)
311-
* - 'residential_plus' → largest and highest quality core pool
312307
*/
313308
export type Proxy =
314309
| "residential"
315-
| "residential_fast"
316-
| "residential_static"
317310
| "mobile"
318-
| "isp"
319-
| "residential_premium"
320-
| "residential_core"
321-
| "residential_plus";
311+
| "isp";
322312

323313
/**
324314
* Represents the options available for making a spider request.

python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def read_file(fname):
88

99
setup(
1010
name="spider_client",
11-
version="0.1.79",
11+
version="0.1.80",
1212
url="https://github.com/spider-rs/spider-clients/tree/main/python",
1313
license="MIT",
1414
author="Spider",

python/spider/async_spider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def _prepare_headers(
267267
return {
268268
"Content-Type": content_type,
269269
"Authorization": f"Bearer {self.api_key}",
270-
"User-Agent": "AsyncSpider-Client/0.1.79",
270+
"User-Agent": "AsyncSpider-Client/0.1.80",
271271
}
272272

273273
async def _handle_error(self, response: ClientResponse, action: str) -> None:

python/spider/spider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def _prepare_headers(self, content_type: str = "application/json"):
280280
return {
281281
"Content-Type": content_type,
282282
"Authorization": f"Bearer {self.api_key}",
283-
"User-Agent": f"Spider-Client/0.1.79",
283+
"User-Agent": f"Spider-Client/0.1.80",
284284
}
285285

286286
def _post_request(self, url: str, data, headers, stream=False):

python/spider/spider_types.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -384,13 +384,8 @@ class RequestParamsDict(TypedDict, total=False):
384384
# Proxy pool selection for outbound request routing.
385385
# Choose a pool based on your use case (e.g., stealth, speed, or stability).
386386
# - 'residential' → cost-effective entry-level residential pool
387-
# - 'residential_fast' → faster residential pool for higher throughput
388-
# - 'residential_static' → static residential IPs, rotated daily
389387
# - 'mobile' → 4G/5G mobile proxies for maximum evasion
390388
# - 'isp' → ISP-grade residential (alias: 'datacenter')
391-
# - 'residential_premium' → low-latency premium IPs
392-
# - 'residential_core' → balanced plan (quality vs. cost)
393-
# - 'residential_plus' → largest and highest quality core pool
394389
proxy: Optional[Proxy]
395390

396391
# Use a remote proxy at ~50% reduced cost for file downloads - bring your own proxy.

0 commit comments

Comments
 (0)