1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "standbyModeInfo": {
9        "message": "This Actor only works in Standby mode",
10        "endpoints": [
11            "/health - Service health check (status: ok)",
12            "/active-users - Active Twitter usernames",
13            "/events/twitter/tweets - Tweet streams (SSE)",
14            "/events/twitter/following - Following events (SSE)",
15            "/events/twitter/profile - Profile updates (SSE)",
16            "/events/twitter/all - All event types (SSE)",
17        ],
18        "documentation": "See README.md for complete usage instructions",
19    } }
20
21
22run = client.actor("muhammetakkurtt/crypto-twitter-tracker").call(run_input=run_input)
23
24
25print("πΎ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
26for item in client.dataset(run["defaultDatasetId"]).iterate_items():
27    print(item)
28
29