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 "texAuVariables": {
13 "yourCompanyDescription": "Example company description",
14 "yourUsp": "Example USP",
15 },
16 "connectedAccountId": "example_connected_account_id",
17 "d": "xoxd-example",
18 "user-agent": "Mozilla/5.0 ...",
19 "txSlackUserId": "example-slack-user-id",
20 "User-Agent": "Mozilla/5.0 ...",
21 "txSmSelfProfileUrl": "example-self-profile-id",
22 "proxy": {
23 "ip": "http://proxy.example.com",
24 "port": "1080",
25 "username": "example_username",
26 "password": "example_password",
27 },
28}
29
30
31run = client.actor("automationagents/slack-channel-members-export").call(run_input=run_input)
32
33
34print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
35for item in client.dataset(run["defaultDatasetId"]).iterate_items():
36 print(item)
37
38