Squashed from chore/license-relicense. Full message preserved in the original branch commitbb77eb5. See ADR-0002 for the decision rationale. Refs: ADR-0002, commitbb77eb5
65 lines
No EOL
1.5 KiB
JSON
65 lines
No EOL
1.5 KiB
JSON
{
|
|
"name": "Crate & Barrel Product",
|
|
"description": "Extract product details from Crate & Barrel",
|
|
"site": "crateandbarrel.com",
|
|
"category": "ecommerce",
|
|
"icon": "\ud83c\udfe0",
|
|
"schema": {
|
|
"name": "crate_product",
|
|
"base_selector": ".product-detail",
|
|
"fields": [
|
|
{
|
|
"name": "title",
|
|
"selector": "h1",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "price",
|
|
"selector": "[class*='price']",
|
|
"type": "text",
|
|
"transform": "float"
|
|
},
|
|
{
|
|
"name": "rating",
|
|
"selector": "[class*='rating'], .stars",
|
|
"type": "attribute",
|
|
"attribute": "aria-label"
|
|
},
|
|
{
|
|
"name": "review_count",
|
|
"selector": "[class*='review']",
|
|
"type": "text",
|
|
"transform": "int"
|
|
},
|
|
{
|
|
"name": "description",
|
|
"selector": "[class*='description']",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "image_url",
|
|
"selector": "[class*='image'] img",
|
|
"type": "attribute",
|
|
"attribute": "src"
|
|
},
|
|
{
|
|
"name": "dimensions",
|
|
"selector": "[class*='dimension']",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "material",
|
|
"selector": "[class*='material']",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "color_options",
|
|
"selector": "[class*='color']",
|
|
"type": "count"
|
|
}
|
|
]
|
|
},
|
|
"url_pattern": "*://www.crateandbarrel.com/*",
|
|
"_license": "MIT",
|
|
"_copyright": "Copyright (c) 2026 Rug Munch Media LLC"
|
|
} |