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
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": "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"
}
]
}
},
"commands": [
{
"command": "wait_for_selector",
"params": {
"selector": "css=.product-item"
}
},
{
"command": "extract_data",
"params": {
"dataset": "products"
}
}
]
}
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!