1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "locations": [
10 {
11 "name": "Corner Cafe",
12 "phone": "(415) 555-0142",
13 "city": "San Francisco",
14 },
15 {
16 "name": "Night Owl Diner",
17 "phone": "(415) 555-0199",
18 "city": "Oakland",
19 },
20 ],
21 "questions": [
22 "Are you open right now?",
23 "What are your hours today?",
24 ],
25 "dryRun": True,
26}
27
28
29run = client.actor("voygr/placecall").call(run_input=run_input)
30
31
32print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
33for item in client.dataset(run.default_dataset_id).iterate_items():
34 print(item)
35
36