1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "competitorName": "Intercom",
10 "competitorAliases": [
11 "Intercom",
12 "intercom.com",
13 "Intercom support",
14 ],
15 "productCategory": "customer support software",
16 "yourProductDescription": "A simpler customer support platform for growing SaaS teams.",
17 "targetUrls": [],
18 "publicUrlSnippets": [],
19 "allowedDomains": [
20 "reddit.com",
21 "news.ycombinator.com",
22 "hn.algolia.com",
23 ],
24 "redditUserAgent": "nodejs:SwitchSignal:v1.0.0 (by /u/your_reddit_username)",
25 "redditSeedUrls": ["https://www.reddit.com/r/SaaS/comments/example/intercom_alternative_discussion/"],
26 "redditSeedTexts": ["Intercom has become too expensive and support is slow. Looking for alternatives."],
27 "redditSearchIndexQueries": [
28 "site:reddit.com/r/ \"Intercom alternative\"",
29 "site:reddit.com/r/ \"Intercom too expensive\"",
30 ],
31 "redditSearchIndexResultUrls": ["https://www.reddit.com/r/SaaS/comments/example/intercom_alternative_discussion/"],
32 "redditSearchIndexResultTitles": ["Intercom alternatives before renewal"],
33 "redditSearchIndexResultSnippets": ["Intercom has become too expensive and support has been painful. We are looking for alternatives before renewal."],
34}
35
36
37run = client.actor("neoscala/switchsignal").call(run_input=run_input)
38
39
40print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
41for item in client.dataset(run.default_dataset_id).iterate_items():
42 print(item)
43
44