1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "businesses": [{
10 "name": "Example HVAC Co",
11 "website": "https://example.com",
12 "reviewsCount": 140,
13 "reviews": [{
14 "text": "AC died on a Sunday, called three times and nobody answered.",
15 "stars": 1,
16 }],
17 "openingHours": [
18 {
19 "day": "Monday",
20 "hours": "7 AM to 4 PM",
21 },
22 {
23 "day": "Sunday",
24 "hours": "Closed",
25 },
26 ],
27 }],
28 "proxyConfiguration": { "useApifyProxy": False },
29}
30
31
32run = client.actor("john_selk/missed-call-lead-finder").call(run_input=run_input)
33
34
35print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
36for item in client.dataset(run.default_dataset_id).iterate_items():
37 print(item)
38
39