1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "targets": [{
9 "url": "https://example.com",
10 "assertions": [{
11 "type": "statusEquals",
12 "value": 200,
13 }],
14 }] }
15
16
17run = client.actor("bread-kim/web-contract-regression-monitor").call(run_input=run_input)
18
19
20print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
21for item in client.dataset(run.default_dataset_id).iterate_items():
22 print(item)
23
24