1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "sources": [
9 {
10 "id": "example-com-home",
11 "url": "https://example.com/",
12 "method": "GET",
13 "expectedStatus": 200,
14 "requiredText": "Example Domain",
15 "minBytes": 200,
16 },
17 {
18 "id": "example-org-home",
19 "url": "https://example.org/",
20 "method": "GET",
21 "expectedStatus": 200,
22 "requiredText": "Example Domain",
23 "minBytes": 200,
24 },
25 ] }
26
27
28run = client.actor("kingii98/scrape-source-health-and-block-monitor").call(run_input=run_input)
29
30
31print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
32for item in client.dataset(run.default_dataset_id).iterate_items():
33 print(item)
34
35