Skip to main content

basic-navigation Scenario 1 — Extract All Product Titles

Written by RTILA X Engineering Team

Beginner ~4 min

What You'll Learn

Extract product titles using CSS selectors and datasets

Real-World Use Case

Scraping an e-commerce product grid

LIVE DEMO

Product Grid

A static product grid containing eight product cards with stable selectors.

Wireless Noise-Cancelling Headphones

Electronics

Premium over-ear headphones with active noise cancellation and 30-hour battery life.

USD249.99 ★ 4.6 (128)

4K Ultra HD Monitor

Electronics

32-inch 4K UHD display with 95% DCI-P3 coverage and USB-C hub.

USD499.99 ★ 4.8 (95)

Mechanical Gaming Keyboard

Electronics

Hot-swappable mechanical keyboard with per-key RGB and aluminum frame.

USD129.99 ★ 4.5 (210)

USB-C Docking Station

Electronics

12-in-1 hub with dual HDMI, SD card slots, Ethernet, and 100W power delivery.

USD159.99 ★ 4.3 (74)

Portable SSD 1TB

Electronics

Pocket-sized solid state drive with 1050 MB/s read speeds and shock resistance.

USD99.99 ★ 4.7 (188)

Smart Home Hub

Electronics

Centralized smart home controller compatible with Zigbee, Z-Wave, and Wi-Fi devices.

USD79.99 ★ 4.2 (143)

Wireless Charging Pad

Electronics

15W fast wireless charging pad with slim aluminum design and LED indicator.

USD29.99 ★ 4.1 (310)

Bluetooth Speaker

Electronics

Waterproof portable speaker with 360° sound and 20-hour battery.

USD59.99 ★ 4.4 (265)
EXPECTED OUTPUT

Extracted Product Titles

title
Wireless Noise-Cancelling Headphones
4K Ultra HD Monitor
Mechanical Gaming Keyboard
USB-C Docking Station
Portable SSD 1TB
Smart Home Hub
Wireless Charging Pad
Bluetooth Speaker
RTILA X PROJECT JSON

RTILA X Automation Project

extract-product-titles.json
    {
  "name": "Extract_Product_Titles",
  "settings": {
    "urls": [
      "https://learn.rtila.com/scenarios/basic-navigation/1"
    ],
    "headless": false,
    "navigation_timeout": 30000,
    "max_concurrent_workers": 1,
    "humanoidEnabled": true,
    "humanoidSensitivity": "medium"
  },
  "datasets": {
    "products": {
      "item_selector": "css=div.product-card",
      "properties": [
        {
          "name": "title",
          "type": "text",
          "selector": "css=h3.product-name"
        }
      ]
    }
  },
  "commands": [
    {
      "command": "goto",
      "params": {
        "url": "https://learn.rtila.com/scenarios/basic-navigation/1"
      }
    },
    {
      "command": "wait_for_selector",
      "params": {
        "selector": "css=div.product-card"
      }
    },
    {
      "command": "extract_data",
      "params": {
        "dataset": "products"
      }
    }
  ]
}
  

RTILA X Concepts

This scenario demonstrates CSS selectors and the text extraction type. The dataset uses item_selector to identify repeating cards and a single text property to read the product name from each card.

Did you complete this scenario?

Ready to run this automation?

Copy the project JSON above, open RTILA X, create a new project, and paste it.

This scenario covers 3 RTILA X commands and is referenced in 2 learning articles.

Continue Learning

Was this helpful?