1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "businesses": [
10 {
11 "website": "https://mortenmyrmel03.github.io/lbpq-demo-sites/summit-ridge-roofing/",
12 "clientRecordId": "demo-001",
13 "businessName": "Summit Ridge Roofing",
14 "country": "US",
15 "city": "Austin",
16 },
17 {
18 "website": "https://mortenmyrmel03.github.io/lbpq-demo-sites/clearwater-plumbing/",
19 "clientRecordId": "demo-002",
20 "businessName": "Clearwater Plumbing Co.",
21 "country": "US",
22 "city": "Denver",
23 },
24 {
25 "website": "mortenmyrmel03.github.io/lbpq-demo-sites/clearwater-plumbing",
26 "clientRecordId": "demo-003",
27 "businessName": "Clearwater Plumbing Co. (duplicate CRM row)",
28 "country": "US",
29 "city": "Aurora",
30 },
31 {
32 "website": "https://mortenmyrmel03.github.io/lbpq-demo-sites/brightside-hvac/",
33 "clientRecordId": "demo-004",
34 "businessName": "Brightside HVAC",
35 },
36 {
37 "website": "https://mortenmyrmel03.github.io/lbpq-demo-sites/parked-domain-demo/",
38 "clientRecordId": "demo-005",
39 },
40 {
41 "website": "https://excluded-demo.example/",
42 "clientRecordId": "demo-006",
43 "businessName": "Excluded by input",
44 },
45 {
46 "website": "not a url",
47 "clientRecordId": "demo-007",
48 },
49 ],
50 "targetServiceCategories": [
51 "roofing",
52 "plumbing",
53 ],
54 "defaultCountry": "US",
55 "maxDomains": 20,
56 "maxPagesPerDomain": 4,
57 "excludedDomains": ["excluded-demo.example"],
58}
59
60
61run = client.actor("mortenm/local-business-prospect-qualifier").call(run_input=run_input)
62
63
64print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
65for item in client.dataset(run.default_dataset_id).iterate_items():
66 print(item)
67
68