Squashed from chore/license-relicense. Full message preserved in the original branch commitbb77eb5. See ADR-0002 for the decision rationale. Refs: ADR-0002, commitbb77eb5
66 lines
No EOL
1.6 KiB
JSON
66 lines
No EOL
1.6 KiB
JSON
{
|
|
"name": "Macy's Product",
|
|
"description": "Extract product details from Macy's",
|
|
"site": "macys.com",
|
|
"category": "ecommerce",
|
|
"icon": "\ud83d\udecd\ufe0f",
|
|
"schema": {
|
|
"name": "macys_product",
|
|
"base_selector": ".product-detail",
|
|
"fields": [
|
|
{
|
|
"name": "title",
|
|
"selector": "h1",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "price",
|
|
"selector": "[class*='price'], [itemprop='price']",
|
|
"type": "text",
|
|
"transform": "float"
|
|
},
|
|
{
|
|
"name": "original_price",
|
|
"selector": "[class*='original'], [class*='was']",
|
|
"type": "text",
|
|
"transform": "float"
|
|
},
|
|
{
|
|
"name": "brand",
|
|
"selector": "[class*='brand']",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "rating",
|
|
"selector": "[class*='rating']",
|
|
"type": "attribute",
|
|
"attribute": "aria-label"
|
|
},
|
|
{
|
|
"name": "review_count",
|
|
"selector": "[class*='reviews']",
|
|
"type": "text",
|
|
"transform": "int"
|
|
},
|
|
{
|
|
"name": "description",
|
|
"selector": "[class*='description']",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "image_url",
|
|
"selector": "[class*='image'] img, .product-image img",
|
|
"type": "attribute",
|
|
"attribute": "src"
|
|
},
|
|
{
|
|
"name": "sale_percent",
|
|
"selector": "[class*='sale'], [class*='percent']",
|
|
"type": "text"
|
|
}
|
|
]
|
|
},
|
|
"url_pattern": "*://www.macys.com/*",
|
|
"_license": "MIT",
|
|
"_copyright": "Copyright (c) 2026 Rug Munch Media LLC"
|
|
} |