Skip to content

Commit 26be454

Browse files
עידן וילנסקיעידן וילנסקי
authored andcommitted
Bump version to 1.0.5
1 parent b91ba4a commit 26be454

3 files changed

Lines changed: 13 additions & 23 deletions

File tree

brightdata/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
APIError
3333
)
3434

35-
__version__ = "1.0.4"
35+
__version__ = "1.0.5"
3636
__author__ = "Bright Data"
3737
__email__ = "support@brightdata.com"
3838

brightdata/utils/zone_manager.py

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -47,31 +47,21 @@ def _create_zone(self, zone_name: str, zone_type: str):
4747
zone_name: Name for the new zone
4848
zone_type: Type of zone ('unblocker' or 'serp')
4949
"""
50+
if zone_type == "serp":
51+
plan_config = {
52+
"type": "unblocker",
53+
"serp": True
54+
}
55+
else:
56+
plan_config = {
57+
"type": zone_type
58+
}
59+
5060
payload = {
61+
"plan": plan_config,
5162
"zone": {
5263
"name": zone_name,
5364
"type": zone_type
54-
},
55-
"plan": {
56-
"type": "static",
57-
"ips_type": "shared",
58-
"bandwidth": "1",
59-
"ip_alloc_preset": "shared_block",
60-
"ips": 0,
61-
"country": "any",
62-
"country_city": "any",
63-
"mobile": "false",
64-
"serp": "false",
65-
"city": "false",
66-
"asn": "false",
67-
"vip": "false",
68-
"vips_type": "shared",
69-
"vips": "0",
70-
"vip_country": "any",
71-
"vip_country_city": "any",
72-
"ub_premium": False,
73-
"solve_captcha_disable": True,
74-
"custom_headers": False
7565
}
7666
}
7767

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "brightdata-sdk"
7-
version = "1.0.4"
7+
version = "1.0.5"
88
description = "Python SDK for Bright Data Web Scraping and SERP APIs"
99
authors = [
1010
{name = "Bright Data", email = "support@brightdata.com"}

0 commit comments

Comments
 (0)