1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "charts": [{
10 "id": "my-super-chart-1",
11 "name": "My chart",
12 "showTable": False,
13 }],
14 "rebrandly": {
15 "id": "LinkId",
16 "apiKey": "YourApiKey",
17 "workspace": "YourWorkspaceId",
18 "title": "My cool dashboard",
19 },
20 "intervals": [
21 "day",
22 "week",
23 "two-weeks",
24 "month",
25 "two-months",
26 ],
27}
28
29
30run = client.actor("jannovotny/status-page").call(run_input=run_input)
31
32
33print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
34for item in client.dataset(run["defaultDatasetId"]).iterate_items():
35 print(item)
36
37