Wireless Noise-Cancelling Headphones
Premium over-ear headphones with active noise cancellation and 30-hour battery life.
Written by RTILA X Engineering Team
Extract data from repeated elements
Collecting product cards from a grid
Twelve product cards with name, price, and category data attributes.
Premium over-ear headphones with active noise cancellation and 30-hour battery life.
32-inch 4K UHD display with 95% DCI-P3 coverage and USB-C hub.
Hot-swappable mechanical keyboard with per-key RGB and aluminum frame.
12-in-1 hub with dual HDMI, SD card slots, Ethernet, and 100W power delivery.
Pocket-sized solid state drive with 1050 MB/s read speeds and shock resistance.
Centralized smart home controller compatible with Zigbee, Z-Wave, and Wi-Fi devices.
15W fast wireless charging pad with slim aluminum design and LED indicator.
Waterproof portable speaker with 360° sound and 20-hour battery.
100% combed cotton crew neck tee with regular fit and pre-shrunk fabric.
Stretch denim jeans with modern slim silhouette and dark indigo wash.
Seam-sealed waterproof shell with adjustable hood and breathable fabric.
Lightweight running shoes with responsive foam midsole and breathable mesh upper.
| name | price | category |
|---|---|---|
| Wireless Noise-Cancelling Headphones | 249.99 | Electronics |
| 4K Ultra HD Monitor | 499.99 | Electronics |
| Mechanical Gaming Keyboard | 129.99 | Electronics |
| USB-C Docking Station | 159.99 | Electronics |
| Portable SSD 1TB | 99.99 | Electronics |
| Smart Home Hub | 79.99 | Electronics |
| Wireless Charging Pad | 29.99 | Electronics |
| Bluetooth Speaker | 59.99 | Electronics |
| Classic Cotton T-Shirt | 19.99 | Clothing |
| Slim Fit Jeans | 69.99 | Clothing |
| Waterproof Rain Jacket | 119.99 | Clothing |
| Running Sneakers | 129.99 | Clothing |
{
"name": "Extract_Product_Cards",
"settings": {
"urls": [
"https://learn.rtila.com/scenarios/loops/2"
]
},
"datasets": {
"products": {
"item_selector": "css=.product-item",
"properties": [
{
"name": "name",
"type": "attribute",
"selector": "css=[data-product-name]",
"attribute": "data-product-name"
},
{
"name": "price",
"type": "attribute",
"selector": "css=[data-product-price]",
"attribute": "data-product-price"
},
{
"name": "category",
"type": "attribute",
"selector": "css=[data-product-category]",
"attribute": "data-product-category"
}
]
}
}
} Extracting repeated elements is handled by defining a dataset with an item_selector that matches each product card, plus properties for the nested title, price, and category selectors.
Copy the project JSON above, open RTILA X, create a new project, and paste it.
This scenario covers 2 RTILA X commands and is referenced in 2 learning articles.
Was this helpful?
Thank you for your feedback!