1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "items": [
10 {
11 "name": "Alice",
12 "age": 31,
13 "active": True,
14 },
15 {
16 "name": "Bob",
17 "age": 19,
18 "active": False,
19 },
20 ],
21 "conditions": [
22 {
23 "field": "age",
24 "operator": "gte",
25 "value": 21,
26 },
27 {
28 "field": "active",
29 "operator": "equals",
30 "value": True,
31 },
32 ],
33}
34
35
36run = client.actor("urban_souffle/mf-232-json-record-filter").call(run_input=run_input)
37
38
39print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
40for item in client.dataset(run.default_dataset_id).iterate_items():
41 print(item)
42
43