1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "files": [{
9 "fileName": "example.html",
10 "text": "<h1>Quarterly Report</h1><p>Revenue grew in every region. 모든 지역에서 매출이 증가했습니다.</p><h2>Next steps</h2><ol><li>Expand to two new markets</li><li>Launch the mobile app<ol><li>Beta in Q1</li><li>Release in Q2</li></ol></li></ol><h2>Regional results</h2><table><tr><th rowspan=\"2\">Region</th><th colspan=\"2\">2026 revenue</th></tr><tr><th>H1</th><th>H2</th></tr><tr><td>Seoul</td><td>100</td><td>120</td></tr><tr><td>Busan</td><td>80</td><td>95</td></tr></table>",
11 }] }
12
13
14run = client.actor("aaron_lee/document-to-markdown-rag-chunks").call(run_input=run_input)
15
16
17print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
18for item in client.dataset(run.default_dataset_id).iterate_items():
19 print(item)
20
21