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

Best Buy

Best Buy 抓取 API,包含搜索和产品来源。包括解析数据支持和全面的集成示例。

使用 网页爬虫API,您可以抓取并解析各种类型的 Best Buy 页面;以下是所有支持的爬虫及其相应的 source 值。

来源
说明
专用解析器

bestbuy_search

搜索页面 用于您选择的搜索词。

否。

bestbuy_product

产品页面 用于您选择的产品 ID。

是的。

快速开始

创建您的 API 用户凭证:在 Oxylabs 仪表板 注册试用或购买产品以创建您的 API 用户凭证(USERNAMEPASSWORD).

请求示例

curl 'https://realtime.oxylabs.io/v1/queries' \
--user "USERNAME:PASSWORD" \
-H "Content-Type: application/json" \
-d '{
        "source": "bestbuy_product",
        "product_id": "6525410",
        "parse": true
    }'
输出示例
{
    "results": [
        {
            "content": {
                "url": "https://www.bestbuy.com/site/apple-iphone-15-plus-128gb-black-verizon/6525454.p?skuId=6525454&intl=nosplash",
                "price": {
                    "price": 25.83,
                    "currency": "USD"
                },
                "title": "Apple - iPhone 15 Plus 128GB - Black (Verizon)",
                "rating": {
                    "count": 55,
                    "score": 4.3
                },
                "_errors": [
                    "'NoneType' object has no attribute 'xpath'"
                ],
                "product_id": "6525410",
                "is_sold_out": false,
                "parse_status_code": 12004,
            },
            "created_at": "2024-06-13 11:44:20",
            "updated_at": "2024-06-13 11:44:48",
            "page": 1,
            "url": "https://www.bestbuy.com/site/apple-iphone-15-plus-128gb-black-verizon/6525454.p?skuId=6525454&intl=nosplash",
            "job_id": "7206984735770310657",
            "status_code": 200,
            "parser_type": "bestbuy_product"
        }
    ]
}

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

可选地,您可以包含其他参数,例如 user_agent_type, parse, render 以及更多用于自定义您的抓取请求的内容。阅读更多:

功能

最后更新于

这有帮助吗?