搜索

按关键词抓取 Grainger 搜索结果页面。

grainger_search source 的设计用于检索 Grainger 搜索结果页。我们可以返回您需要的任何 Grainger 页面 HTML。要查看包含检索数据的响应示例,请下载 此示例输出 HTML 格式文件。

请求示例

下面的示例说明了如何获取 Grainger 搜索结果。

curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
        "source": "grainger_search", 
        "query": "pipe",
        "domain": "com"
    }'

我们使用同步的 Realtime 集成方法作为示例。如果您想使用 Proxy Endpoint 或异步 Push-Pull 集成,请参阅 集成方法 部分。

请求参数值

通用

参数
说明
默认值

source

设置爬虫。

grainger_search

query

用于搜索商品的关键词或短语。

-

域名

不同 Grainger 区域的域本地化。 (com, com.mx, ca)

-

render

设置为 html. 更多信息.

-

callback_url

您的回调端点 URL。 更多信息

-

user_agent_type

设备类型和浏览器。完整列表可在 这里.

desktop

– 必填参数

最后更新于

这有帮助吗?