scheduling Scenario 4 — Weekly Report Download
Written by RTILA X Engineering Team
Intermediate ~6 min
Prerequisites: scheduling/1 scheduling/2
What You'll Learn
Chain multiple schedules with dependencies
Real-World Use Case
Orchestrating complex data pipelines
LIVE DEMO
Weekly Reports
Extract report titles and dates, then download each report file.
Weekly Reports
EXPECTED OUTPUT
Reports
| title | date | download_url |
|---|---|---|
| Weekly Report - Week 1 | 2025-01-05 | /files/report-week-1.pdf |
| Weekly Report - Week 2 | 2025-01-12 | /files/report-week-2.pdf |
| Weekly Report - Week 3 | 2025-01-19 | /files/report-week-3.pdf |
| Weekly Report - Week 4 | 2025-01-26 | /files/report-week-4.pdf |
RTILA X PROJECT JSON
RTILA X Automation Project
weekly-report-download.json
{
"name": "Weekly_Report_Download",
"settings": {
"urls": [
"https://learn.rtila.com/scenarios/scheduling/4"
]
},
"datasets": {
"reports": {
"item_selector": "css=.report-item",
"properties": [
{
"name": "title",
"type": "text",
"selector": "css=.report-title"
},
{
"name": "date",
"type": "text",
"selector": "css=.report-date"
},
{
"name": "download_url",
"type": "attribute",
"selector": "css=a.report-download",
"attribute": "href"
}
]
}
},
"commands": [
{
"command": "extract_data",
"params": {
"dataset": "reports"
}
},
{
"command": "for_each",
"params": {
"source_type": "dataset",
"dataset": "reports",
"as": "report",
"do": [
{
"command": "goto",
"params": {
"url": "${report.download_url}"
}
},
{
"command": "wait_for_load_state",
"params": {
"state": "domcontentloaded"
}
},
{
"command": "wait",
"params": {
"timeout": 1500
}
}
]
}
}
]
} Weekly report retrieval combines dataset extraction with a loop that downloads each report file. Scheduling this automation ensures reports are available on a regular basis.
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 2 learning articles.
Continue Learning
Was this helpful?
Thank you for your feedback!