1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "slWorkspaceIdToken": "T00000000;xoxc-example;workspace-name",
10 "slChannelUrl": "https://app.slack.com/client/T00000000/C00000000",
11 "maxCount": 10,
12 "d": "xoxd-example",
13 "user-agent": "Mozilla/5.0 ...",
14 "txSlackUserId": "example-slack-user-id",
15 "User-Agent": "Mozilla/5.0 ...",
16 "txSmSelfProfileUrl": "example-self-profile-id",
17 "proxy": {
18 "ip": "http://proxy.example.com",
19 "port": "1080",
20 "username": "example_username",
21 "password": "example_password",
22 },
23}
24
25
26run = client.actor("automationagents/slack-channel-members-export").call(run_input=run_input)
27
28
29print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
30for item in client.dataset(run["defaultDatasetId"]).iterate_items():
31 print(item)
32
33