1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "urls": [
9 "https://www.google.com",
10 "https://en.wikipedia.org/wiki/Web_scraping",
11 "https://example.com",
12 "https://httpstat.us/404",
13 "https://httpstat.us/301",
14 ] }
15
16
17run = client.actor("automation-lab/http-status-checker").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