1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "offer": "Online booking and reminder system for beauty salons and clinics that still take appointments by phone.",
10 "idealCustomer": "Independent salons, spas and clinics with 1-3 branches. Not large chains.",
11 "leads": [
12 {
13 "name": "Kak Yah Beauty",
14 "category": "Beauty salon",
15 "city": "Shah Alam",
16 "phone": "+60 19-555 1212",
17 "rating": 4.1,
18 "reviewsCount": 12,
19 },
20 {
21 "name": "Glow Facial Bar",
22 "category": "Facial spa",
23 "city": "Cheras",
24 "phone": "+60 11-2222 3333",
25 "website": "https://www.facebook.com/glowfacialbar",
26 },
27 ],
28 "websites": ["https://example.com"],
29}
30
31
32run = client.actor("shariful-labs/lead-qualifier").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