搜索
通过提供搜索词抓取 Publix 搜索结果页。
该 publix_search source 旨在检索 Publix 搜索结果页。我们可以返回您需要的任何 Publix 搜索页面的 HTML。
请求示例
下面的示例说明了如何获取 Publix 搜索结果。
curl 'https://realtime.oxylabs.io/v1/queries' \\
--user 'USERNAME:PASSWORD' \\
-H 'Content-Type: application/json' \\
-d '{
"source": "publix_search",
"query": "wings",
"store_id": 24
}'import requests
from pprint import pprint
# 结构化载荷。
payload = {
'source': 'publix_search',
'query': 'wings',
'store_id': 24
}
# 获取响应。
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 集成,请参阅 集成方法 部分。
请求参数值
通用
- 必填参数
本地化
根据门店位置调整结果。
参数
描述
默认值
类型
store_id
指定一个门店。查看并下载 下面的可用值.
-
整数
最后更新于
这有帮助吗?

