Best Buy 商品详情
提取 Best Buy 商品页面 - 标题、价格、完整描述、规格、评分和评论摘要。
API 用法
在 Crawling API 请求中添加 &scraper=bestbuy-product-details。在 url 参数中对目标 URL 进行 URL 编码。
curl 'https://api.crawlbase.com/?token=YOUR_TOKEN' \
--data-urlencode 'url=https://www.bestbuy.com/site/meta-quest-3-512gb-the-most-powerful-quest-ultimate-mixed-reality-experiences-get-batman-arkham-shadow-white/6596938.p' \
--data-urlencode 'scraper=bestbuy-product-details' -Gfrom crawlbase import CrawlingAPI
api = CrawlingAPI({'token': 'YOUR_TOKEN'})
res = api.get(
'https://www.bestbuy.com/site/meta-quest-3-512gb-the-most-powerful-quest-ultimate-mixed-reality-experiences-get-batman-arkham-shadow-white/6596938.p',
{'scraper': 'bestbuy-product-details'}
)
import json
data = json.loads(res['body'])const { CrawlingAPI } = require('crawlbase');
const api = new CrawlingAPI({ token: 'YOUR_TOKEN' });
const res = await api.get(
'https://www.bestbuy.com/site/meta-quest-3-512gb-the-most-powerful-quest-ultimate-mixed-reality-experiences-get-batman-arkham-shadow-white/6596938.p',
{ scraper: 'bestbuy-product-details' }
);
const data = JSON.parse(res.body);require 'crawlbase'
api = Crawlbase::API.new(token: 'YOUR_TOKEN')
res = api.get('https://www.bestbuy.com/site/meta-quest-3-512gb-the-most-powerful-quest-ultimate-mixed-reality-experiences-get-batman-arkham-shadow-white/6596938.p', scraper: 'bestbuy-product-details')
data = JSON.parse(res.body)示例输入 URL
传入 url 参数的 URL(为便于阅读已 URL 解码):
https://www.bestbuy.com/site/meta-quest-3-512gb-the-most-powerful-quest-ultimate-mixed-reality-experiences-get-batman-arkham-shadow-white/6596938.p响应结构
JSON 响应体。当源页面省略相应值时,字段类型可能为 null。
SKU。
标题。
品牌。
当前价格。
折扣前价格。
门店和线上库存情况。
评分。
评论数量。
描述。
功能要点。
规格键值对。
图片。
视频 URL。
响应示例
{
"sku": "6596938",
"title": "Meta Quest 3 512GB",
"brand": "Meta",
"price": "$649.99",
"availability": "In stock",
"rating": 4.7
}