1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "url": "https://www.thestar.com.my/news/nation/2026/10/14/three-teenagers-injured-after-a-flag-they-were-carrying-came-in-contact-with-high-voltage-power-line" }
9
10
11run = client.actor("xtracto/thestar-scraper").call(run_input=run_input)
12
13
14print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
15for item in client.dataset(run.default_dataset_id).iterate_items():
16 print(item)
17
18