搜索
按关键词抓取 eBay 搜索结果页,并支持分页和跨多个 eBay 区域站点的域名本地化。
该 ebay_search 该 source 旨在检索 eBay 搜索结果页。我们可以返回任何 eBay 你喜欢的搜索页面。要查看带有已检索数据的响应示例,请下载 此示例输出 HTML 格式文件。
目前,我们的 API 仅为此页面类型提供 HTML 输出。不过,你可以轻松 构建自己的解析器 如果你希望获取 JSON 结构化数据。
请求示例
下面的示例说明了如何获取 eBay 搜索结果。
curl 'https://realtime.oxylabs.io/v1/queries' \\
--user 'USERNAME:PASSWORD' \\
-H 'Content-Type: application/json' \
-d '{
"source": "ebay_search",
"query": "shoes"
}'import requests
from pprint import pprint
# Structure payload.
payload = {
'source': 'ebay_search',
'query': 'shoes'
}
# 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
适用于不同 eBay 地区的域名本地化。(com, co.uk, de, ca, com.au, it, pl, ph, com.hk, com.sg)
com
最后更新于
这有帮助吗?

