1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "sitemapFiles": [{ "content": "<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\"><url><loc>https://example.org/</loc><lastmod>2024-06-01</lastmod></url><url><loc>https://example.org/</loc></url><url><loc>https://example.org/about</loc><lastmod>2099-01-01</lastmod></url></urlset>" }] }
9
10
11run = client.actor("afkdigital/xml-sitemap-health-freshness-auditor").call(run_input=run_input)
12
13
14print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
15for item in client.dataset(run.default_dataset_id).iterate_items():
16 print(item)
17
18