1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "urls": [
10 "https://docs.python.org/3/whatsnew/index.html",
11 "https://www.federalreserve.gov/newsevents/pressreleases.htm",
12 "https://news.ycombinator.com/",
13 "https://www.gov.uk/government/organisations/hm-treasury",
14 ],
15 "mode": "monitor",
16 "firstRunBehavior": "baseline-only",
17 "watch": [
18 "text",
19 "title",
20 ],
21 "ignore": [],
22 "keywords": [],
23 "minChangePercent": 0,
24 "includeText": False,
25 "maxTextChars": 20000,
26 "webhookUrl": "",
27 "maxUrls": 100,
28 "stateStoreName": "website-change-monitor-state",
29 "maxConcurrency": 5,
30 "maxRunSecs": 240,
31 "proxyConfiguration": { "useApifyProxy": True },
32}
33
34
35run = client.actor("insight.solutions/website-change-monitor").call(run_input=run_input)
36
37
38print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
39for item in client.dataset(run.default_dataset_id).iterate_items():
40 print(item)
41
42