1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "companies": [
9 {
10 "name": "Slack",
11 "pricing_url": "https://slack.com/pricing",
12 "category": "collaboration",
13 "competitors": [
14 "Microsoft Teams",
15 "Discord",
16 ],
17 },
18 {
19 "name": "Notion",
20 "pricing_url": "https://www.notion.so/pricing",
21 "category": "productivity",
22 "competitors": [
23 "Airtable",
24 "Monday.com",
25 ],
26 },
27 {
28 "name": "Stripe",
29 "pricing_url": "https://stripe.com/pricing",
30 "category": "payments",
31 "competitors": [
32 "PayPal",
33 "Square",
34 ],
35 },
36 ] }
37
38
39run = client.actor("mea/saaspricingintelligence").call(run_input=run_input)
40
41
42print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
43for item in client.dataset(run["defaultDatasetId"]).iterate_items():
44 print(item)
45
46