1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "pages": [
10 "https://buttondown.com/pricing",
11 "https://ghost.org/changelog",
12 ],
13 "pageTypes": [
14 "pricing",
15 "changelog",
16 ],
17 "mode": "changes",
18 "onlyChanged": False,
19 "changeTypes": [
20 "plan_added",
21 "plan_removed",
22 "price_changed",
23 "features_changed",
24 "changelog_added",
25 "changelog_removed",
26 "feature_added",
27 "feature_removed",
28 "extraction_failed",
29 ],
30 "monitorName": "default",
31 "maxChangelogEntries": 25,
32 "respectRobotsTxt": True,
33 "requestsPerSecond": 1,
34 "proxyConfiguration": { "useApifyProxy": False },
35}
36
37
38run = client.actor("mmdincer/saas-pricing-changelog-monitor").call(run_input=run_input)
39
40
41print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
42for item in client.dataset(run.default_dataset_id).iterate_items():
43 print(item)
44
45