1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "urls": [
10 "https://www.gov.uk/foreign-travel-advice/france",
11 "https://www.gov.uk/foreign-travel-advice/spain",
12 "http://169.254.169.254/latest/meta-data",
13 ],
14 "maxUrls": 50,
15 "maxSitemapDepth": 2,
16 "userAgent": "Mozilla/5.0 (compatible; NexGenWatchBot/1.0; +https://apify.com/nexgenwatch)",
17}
18
19
20run = client.actor("nexgenwatch/sitemap-indexability-auditor").call(run_input=run_input)
21
22
23print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
24for item in client.dataset(run.default_dataset_id).iterate_items():
25 print(item)
26
27