搜索
使用 Web Scraper 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
# 构建负载。
payload = {
'source': 'bestbuy_search',
'query': 'iphone 14',
'domain': 'com'
}
# 获取响应。
response = requests.request(
'POST',
'https://realtime.oxylabs.io/v1/queries',
auth=('USERNAME', 'PASSWORD'),
json=payload,
)
# 该请求不会返回带有作业状态和结果 URL 的响应,而是返回
# 包含结果的 JSON 响应。
pprint(response.json())我们在示例中使用同步 Realtime 集成方法。如果您想使用 Proxy Endpoint 或异步 Push-Pull 集成,请参阅 集成方法 部分。
请求参数值
通用
- 强制参数
本地化
将结果调整到特定域、商店、交付地点。
参数
说明
默认值
类型
domain
Bestbuy 的域本地化。可用值: com, ca.
com
字符串
store_id
指定一个商店。
-
整数
delivery_zip
设置交付邮编位置。
-
字符串
fulfillment_type
指定订单履约方式。 可用值: pickup, 运输
-
字符串
最后更新于
这有帮助吗?

