1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "start_urls": ["https://techcrunch.com/category/artificial-intelligence/"],
10 "instruction": "Find the latest 5 articles about AI. For each article, extract the headline, the author's name, the date it was published, and a one-paragraph summary of what the article's content.",
11}
12
13
14run = client.actor("hpix/agentic-crawler").call(run_input=run_input)
15
16
17print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
18for item in client.dataset(run["defaultDatasetId"]).iterate_items():
19 print(item)
20
21