1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "urls": [
9 "http://python.org",
10 "https://www.example.com/",
11 "https://www.python.org/this-page-does-not-exist-404",
12 "http://docs.python.org/3/ https://docs.python.org/3/",
13 ] }
14
15
16run = client.actor("sampon/bulk-url-status-redirect-checker").call(run_input=run_input)
17
18
19print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
20for item in client.dataset(run.default_dataset_id).iterate_items():
21 print(item)
22
23