data-transformation Scenario 3 — Deduplicate Listings by URL and Export SQL
Written by RTILA X Engineering Team
Intermediate ~6 min
Prerequisites: data-transformation/1 data-transformation/2
What You'll Learn
Convert data formats (JSON, CSV, Excel)
Real-World Use Case
Preparing data for reporting tools
LIVE DEMO
EXPECTED OUTPUT
RTILA X PROJECT JSON
{
"name": "Deduplicate_Listings_Export_SQL",
"settings": {
"urls": [
"https://learn.rtila.com/scenarios/data-transformation/3"
]
},
"datasets": {
"deduplicated_listings": {
"item_selector": "css=.listing-item",
"deduplicate_by": [
"url"
],
"properties": [
{
"name": "title",
"type": "text",
"selector": "css=.listing-title"
},
{
"name": "url",
"type": "attribute",
"selector": "css=a.listing-url",
"attribute": "href"
},
{
"name": "price",
"type": "text",
"selector": "css=.listing-price"
}
]
}
},
"commands": [
{
"command": "wait_for_selector",
"params": {
"selector": "css=.listing-item"
}
},
{
"command": "extract_data",
"params": {
"dataset": "deduplicated_listings"
}
},
{
"command": "comment",
"params": {
"text": "SQL export trigger would preserve the deduplicated rows"
}
}
]
}
The dataset-level deduplicate_by option uses the URL field to remove duplicates automatically, making the extracted data ready for SQL export.
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 1 RTILA X command and is referenced in 1 learning article.
Continue Learning
Was this helpful?
Thank you for your feedback!