Documentation has been updated: see help center and changelog in one place.

商品

了解如何使用 cdiscount_product 来源和网页爬虫 API 收集 Cdiscount 的产品页面数据。

cdiscount_product 数据源用于检索 Cdiscount 产品页面。

请求示例

在下面的示例中,我们发出请求以检索以下产品页面 15094-mp225031016.

curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
        "source": "cdiscount_product",
        "product_id": "15094-mp225031016",
        "render": "html"
    }'

请求参数值

通用

用于抓取 Cdiscount 产品页面的基本设置和自定义选项。

参数
说明
默认值

source

设置抓取器。

cdiscount_product

product_id

Cdiscount 产品 ID。

-

render

启用 JavaScript 渲染,当设置为 html. 更多信息.

-

callback_url

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

-

user_agent_type

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

desktop

- 必填参数

最后更新于

这有帮助吗?