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
Amazon Search Results
Twenty Amazon-style results with title, price, rating, and image URL.
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
Amazon Results
| title | price | rating | image_url |
|---|---|---|---|
| Wireless Noise-Cancelling Headphones | $249.99 | 4.5 out of 5 stars | /images/1.jpg |
| 4K Ultra HD Monitor | $499.99 | 4.5 out of 5 stars | /images/2.jpg |
| Mechanical Gaming Keyboard | $129.99 | 4.5 out of 5 stars | /images/3.jpg |
| USB-C Docking Station | $159.99 | 4.5 out of 5 stars | /images/4.jpg |
| Portable SSD 1TB | $99.99 | 4.5 out of 5 stars | /images/5.jpg |
| Smart Home Hub | $79.99 | 4.5 out of 5 stars | /images/6.jpg |
| Wireless Charging Pad | $29.99 | 4.5 out of 5 stars | /images/7.jpg |
| Bluetooth Speaker | $59.99 | 4.5 out of 5 stars | /images/8.jpg |
| Classic Cotton T-Shirt | $19.99 | 4.5 out of 5 stars | /images/9.jpg |
| Slim Fit Jeans | $69.99 | 4.5 out of 5 stars | /images/10.jpg |
| Waterproof Rain Jacket | $119.99 | 4.5 out of 5 stars | /images/11.jpg |
| Running Sneakers | $129.99 | 4.5 out of 5 stars | /images/12.jpg |
| Wool Blend Sweater | $89.99 | 4.5 out of 5 stars | /images/13.jpg |
| Leather Belt | $39.99 | 4.5 out of 5 stars | /images/14.jpg |
| Sun Hat | $24.99 | 4.5 out of 5 stars | /images/15.jpg |
| Sport Socks Pack | $9.99 | 4.5 out of 5 stars | /images/16.jpg |
| JavaScript: The Good Parts | $16.95 | 4.5 out of 5 stars | /images/17.jpg |
| Design Patterns Explained | $28.99 | 4.5 out of 5 stars | /images/18.jpg |
| Data Structures in Python | $49.99 | 4.5 out of 5 stars | /images/19.jpg |
| Machine Learning Basics | $39.99 | 4.5 out of 5 stars | /images/20.jpg |
RTILA X PROJECT JSON
RTILA X Automation Project
amazon-search-extract-20.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"
}
]
}
}
} 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!