1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "parse",
10 "xmlInput": "",
11 "xmlUrl": "",
12 "forceType": "",
13 "batchUrls": [
14 "https://example.com/report1.xml",
15 "https://example.com/report2.xml",
16 ],
17 "batchXmls": [
18 "<?xml version=\"1.0\"?>...",
19 "<?xml version=\"1.0\"?>...",
20 ],
21 "domain": "",
22}
23
24
25run = client.actor("perryay/dmarc-report-analyzer").call(run_input=run_input)
26
27
28print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
29for item in client.dataset(run["defaultDatasetId"]).iterate_items():
30 print(item)
31
32