搜索
使用网页爬虫API 抓取 Best Buy 搜索结果,并支持按域名、门店和履约条件过滤。
该 bestbuy_search source 旨在检索 Bestbuy 搜索结果页面。我们可以返回你想要的任何 Best Buy 页面 HTML。要查看包含检索数据的响应示例,请下载 此示例输出 HTML 格式的文件。
请求示例
下面的示例说明如何获取 Best Buy 搜索结果。
curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
"source": "bestbuy_search",
"query": "iphone 14",
"domain": "com"
}'import requests
from pprint import pprint
# Structure payload.
payload = {
'source': 'bestbuy_search',
'query': 'iphone 14',
'domain': 'com'
}
# Get response.
response = requests.request(
'POST',
'https://realtime.oxylabs.io/v1/queries',
auth=('USERNAME', 'PASSWORD'),
json=payload,
)
# Instead of response with job status and results url, this will return the
# JSON response with the result.
pprint(response.json())我们使用同步 Realtime 集成方法。若你想使用 Proxy Endpoint 或异步 Push-Pull 集成,请参阅 集成方法 部分。
请求参数值
通用
- 必填参数
本地化
将结果适配到特定域名、门店和配送地点。
参数
描述
默认值
类型
domain
Bestbuy 的域名本地化。可用值: com.
com
字符串
fulfillment_type
指定订单履约方式。可用值: pickup, shipping.
每个值都需要一个配套参数,用于指定检查可用性的地点: pickup 需要 store_id (整数 - 门店 URL 末尾的数字),以及 shipping 需要 delivery_zip (字符串)。
-
字符串
最后更新于
这有帮助吗?

