产品

通过产品 ID 抓取 Grainger 产品页面,支持 Grainger 区域站点的域名本地化。

grainger_product 数据源用于检索 Grainger 产品页面。

请求示例

在下面的示例中,我们发起请求以检索一个商品页面, 1THX7.

curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
        "source": "grainger_product",
        "product_id": "1THX7",
        "domain": "com",
        "render": "html"
    }'

请求参数值

通用

抓取 Grainger 产品页面的基础设置和自定义选项。

参数
说明
默认值

source

设置爬虫。

grainger_product

product_id

Grainger 产品 ID。

-

域名

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

-

render

设置为 html. 更多信息.

-

callback_url

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

-

user_agent_type

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

desktop

– 必填参数

最后更新于

这有帮助吗?