ecommerce Scenario 1 — Amazon Search — Extract 20 Products
Written by RTILA X Engineering Team
Beginner ~4 min
What You'll Learn
Scrape product listings from a store
Real-World Use Case
Monitoring competitor pricing
LIVE DEMO
Wireless Noise-Cancelling Headphones
$249.99
4K Ultra HD Monitor
$499.99
Mechanical Gaming Keyboard
$129.99
USB-C Docking Station
$159.99
Portable SSD 1TB
$99.99
Smart Home Hub
$79.99
Wireless Charging Pad
$29.99
Bluetooth Speaker
$59.99
Classic Cotton T-Shirt
$19.99
Slim Fit Jeans
$69.99
Waterproof Rain Jacket
$119.99
Running Sneakers
$129.99
Wool Blend Sweater
$89.99
Leather Belt
$39.99
Sun Hat
$24.99
Sport Socks Pack
$9.99
JavaScript: The Good Parts
$16.95
Design Patterns Explained
$28.99
Data Structures in Python
$49.99
Machine Learning Basics
$39.99
EXPECTED OUTPUT
RTILA X PROJECT JSON
{
"name": "Amazon_Search_Extract_20",
"settings": {
"urls": [
"https://learn.rtila.com/scenarios/ecommerce/1"
]
},
"datasets": {
"amazon_results": {
"item_selector": "css=.amazon-result",
"properties": [
{
"name": "title",
"type": "text",
"selector": "css=.amazon-title"
},
{
"name": "price",
"type": "text",
"selector": "css=.amazon-price"
},
{
"name": "rating",
"type": "text",
"selector": "css=.amazon-rating"
},
{
"name": "image_url",
"type": "attribute",
"selector": "css=img.amazon-image",
"attribute": "src"
}
]
}
},
"commands": [
{
"command": "wait_for_selector",
"params": {
"selector": "css=.amazon-result"
}
},
{
"command": "extract_data",
"params": {
"dataset": "amazon_results"
}
}
]
}
Product lists can be extracted with a single dataset definition. Every field uses a stable inner selector, while the image URL is read from an attribute.
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 2 RTILA X commands and is referenced in 2 learning articles.
Continue Learning
Was this helpful?
Thank you for your feedback!