Skip to content

Commit 975569f

Browse files
עידן וילנסקיעידן וילנסקי
authored andcommitted
Update default data_format to html, bump version to 1.0.6, and update README
1 parent 26be454 commit 975569f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

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.5"
35+
__version__ = "1.0.6"
3636
__author__ = "Bright Data"
3737
__email__ = "[email protected]"
3838

brightdata/client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def scrape(
141141
response_format: str = "raw",
142142
method: str = "GET",
143143
country: str = "",
144-
data_format: str = "markdown",
144+
data_format: str = "html",
145145
async_request: bool = False,
146146
max_workers: int = None,
147147
timeout: int = None
@@ -154,10 +154,10 @@ def scrape(
154154
### Parameters:
155155
- `url` (str | List[str]): Single URL string or list of URLs to scrape
156156
- `zone` (str, optional): Zone identifier (default: auto-configured web_unlocker_zone)
157-
- `response_format` (str, optional): Response format - `"json"` for structured data, `"raw"` for HTML string (default: `"json"`)
157+
- `response_format` (str, optional): Response format - `"json"` for structured data, `"raw"` for HTML string (default: `"raw"`)
158158
- `method` (str, optional): HTTP method for the request (default: `"GET"`)
159159
- `country` (str, optional): Two-letter ISO country code for proxy location (defaults to fastest connection)
160-
- `data_format` (str, optional): Additional format transformation (default: `"markdown"`)
160+
- `data_format` (str, optional): Additional format transformation (default: `"html"`)
161161
- `async_request` (bool, optional): Enable asynchronous processing (default: `False`)
162162
- `max_workers` (int, optional): Maximum parallel workers for multiple URLs (default: `10`)
163163
- `timeout` (int, optional): Request timeout in seconds (default: `30`)
@@ -204,7 +204,7 @@ def search(
204204
response_format: str = "raw",
205205
method: str = "GET",
206206
country: str = "",
207-
data_format: str = "markdown",
207+
data_format: str = "html",
208208
async_request: bool = False,
209209
max_workers: int = None,
210210
timeout: int = None,
@@ -220,10 +220,10 @@ def search(
220220
- `query` (str | List[str]): Search query string or list of search queries
221221
- `search_engine` (str, optional): Search engine to use - `"google"`, `"bing"`, or `"yandex"` (default: `"google"`)
222222
- `zone` (str, optional): Zone identifier (default: auto-configured serp_zone)
223-
- `response_format` (str, optional): Response format - `"json"` for structured data, `"raw"` for HTML string (default: `"json"`)
223+
- `response_format` (str, optional): Response format - `"json"` for structured data, `"raw"` for HTML string (default: `"raw"`)
224224
- `method` (str, optional): HTTP method for the request (default: `"GET"`)
225225
- `country` (str, optional): Two-letter ISO country code for proxy location (default: `"us"`)
226-
- `data_format` (str, optional): Additional format transformation (default: `"markdown"`)
226+
- `data_format` (str, optional): Additional format transformation (default: `"html"`)
227227
- `async_request` (bool, optional): Enable asynchronous processing (default: `False`)
228228
- `max_workers` (int, optional): Maximum parallel workers for multiple queries (default: `10`)
229229
- `timeout` (int, optional): Request timeout in seconds (default: `30`)

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.5"
7+
version = "1.0.6"
88
description = "Python SDK for Bright Data Web Scraping and SERP APIs"
99
authors = [
1010
{name = "Bright Data", email = "[email protected]"}

0 commit comments

Comments
 (0)