1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "vendors": [{
9 "id": "stripe",
10 "name": "Stripe",
11 "criticality": "high",
12 "owner": "Procurement",
13 "tags": [
14 "payments",
15 "renewal-q3",
16 "strategic vendor",
17 ],
18 "urlPacks": {
19 "pricing": [{
20 "id": "stripe-pricing",
21 "name": "Stripe Pricing",
22 "url": "https://stripe.com/pricing",
23 "includePatterns": [
24 "pricing",
25 "annual",
26 "enterprise",
27 "billing",
28 ],
29 "excludePatterns": [
30 "cookie",
31 "sign in",
32 ],
33 }],
34 "terms": [{
35 "id": "stripe-terms",
36 "name": "Stripe Services Agreement",
37 "url": "https://stripe.com/legal/ssa",
38 "includePatterns": [
39 "fees",
40 "renewal",
41 "termination",
42 "liability",
43 ],
44 "excludePatterns": [
45 "cookie",
46 "sign in",
47 ],
48 }],
49 "privacy": [{
50 "id": "stripe-privacy",
51 "name": "Stripe Privacy Policy",
52 "url": "https://stripe.com/privacy",
53 "includePatterns": [
54 "processing",
55 "data",
56 "retention",
57 "subprocessor",
58 "transfer",
59 ],
60 "excludePatterns": [
61 "cookie",
62 "sign in",
63 ],
64 }],
65 "security": [{
66 "id": "stripe-security",
67 "name": "Stripe Security",
68 "url": "https://stripe.com/docs/security/stripe",
69 "includePatterns": [
70 "security",
71 "incident",
72 "encryption",
73 "compliance",
74 ],
75 "excludePatterns": [
76 "cookie",
77 "sign in",
78 ],
79 }],
80 "status": [{
81 "id": "stripe-status",
82 "name": "Stripe Status",
83 "url": "https://status.stripe.com/",
84 "includePatterns": [
85 "incident",
86 "degraded",
87 "maintenance",
88 "operational",
89 ],
90 "excludePatterns": ["cookie"],
91 }],
92 "changelog": [{
93 "id": "stripe-changelog",
94 "name": "Stripe Changelog",
95 "url": "https://docs.stripe.com/changelog",
96 "includePatterns": [
97 "billing",
98 "pricing",
99 "deprecated",
100 "breaking",
101 ],
102 "excludePatterns": [
103 "cookie",
104 "sign in",
105 ],
106 }],
107 },
108 }] }
109
110
111run = client.actor("taroyamada/vendor-change-monitor").call(run_input=run_input)
112
113
114print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
115for item in client.dataset(run["defaultDatasetId"]).iterate_items():
116 print(item)
117
118