1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "portfolio": [
9 {
10 "key": "VOO",
11 "value": "40",
12 },
13 {
14 "key": "QQQ",
15 "value": "30",
16 },
17 {
18 "key": "SCHD",
19 "value": "30",
20 },
21 ] }
22
23
24run = client.actor("leafy-dev-jr/etf-holdings-overlap-intelligence-scraper").call(run_input=run_input)
25
26
27print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
28for item in client.dataset(run["defaultDatasetId"]).iterate_items():
29 print(item)
30
31