For the complete documentation index, see llms.txt. This page is also available as Markdown.

产品

通过产品 ID 抓取 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"
    }'

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

请求参数值

通用

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

参数
说明
默认值

source

设置爬虫。

cdiscount_product

product_id

Cdiscount 商品 ID。

-

render

设置为 html. 更多信息.

-

callback_url

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

-

user_agent_type

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

desktop

- 必填参数

最后更新于

这有帮助吗?