1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [{ "url": "https://apify.com" }],
10 "wccInput": {
11 "aggressivePrune": False,
12 "clickElementsCssSelector": "[aria-expanded=\"false\"]",
13 "clientSideMinChangePercentage": 15,
14 "crawlerType": "playwright:adaptive",
15 "debugLog": False,
16 "debugMode": False,
17 "expandIframes": True,
18 "ignoreCanonicalUrl": False,
19 "keepUrlFragments": False,
20 "proxyConfiguration": { "useApifyProxy": True },
21 "readableTextCharThreshold": 100,
22 "removeCookieWarnings": True,
23 "removeElementsCssSelector": """nav, footer, script, style, noscript, svg,
24[role=\"alert\"],
25[role=\"banner\"],
26[role=\"dialog\"],
27[role=\"alertdialog\"],
28[role=\"region\"][aria-label*=\"skip\" i],
29[aria-modal=\"true\"]""",
30 "renderingTypeDetectionPercentage": 10,
31 "saveFiles": False,
32 "saveHtml": False,
33 "saveHtmlAsFile": False,
34 "saveMarkdown": True,
35 "saveScreenshots": False,
36 "useSitemaps": False,
37 },
38}
39
40
41run = client.actor("tri_angle/sitemap-change-orchestrator").call(run_input=run_input)
42
43
44print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
45for item in client.dataset(run["defaultDatasetId"]).iterate_items():
46 print(item)
47
48