1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "works": [
9 {
10 "id": "W-1",
11 "title": "Frankenstein",
12 "creator": "James Whale",
13 "type": "film",
14 "year": 1931,
15 },
16 {
17 "id": "W-2",
18 "title": "The Great Gatsby",
19 "creator": "F. Scott Fitzgerald",
20 "type": "book",
21 "year": 1925,
22 },
23 {
24 "id": "W-3",
25 "title": "Heebie Jeebies",
26 "creator": "Louis Armstrong and His Hot Five",
27 "type": "sound_recording",
28 "year": 1926,
29 },
30 {
31 "id": "W-4",
32 "title": "Beloved",
33 "creator": "Toni Morrison",
34 "type": "book",
35 "year": 1987,
36 },
37 ] }
38
39
40run = client.actor("robot-supply-store/us-public-domain-checker").call(run_input=run_input)
41
42
43print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
44for item in client.dataset(run.default_dataset_id).iterate_items():
45 print(item)
46
47