1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "runMode": "snapshots",
10 "state": "Tennessee",
11 "city": "Nashville",
12 "discoveryItems": [{
13 "placeId": "fictional-public-healthcheck-v1",
14 "title": "FICTIONAL DEMO - NOT A REAL LEAD",
15 "city": "Nashville",
16 "state": "Tennessee",
17 "countryCode": "US",
18 "address": "100 Fictional Sample Way, Nashville, TN",
19 "website": "https://fictional-lead-hunter.example/",
20 }],
21}
22
23
24run = client.actor("wooden_turbojet/be-lead-hunter").call(run_input=run_input)
25
26
27print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
28for item in client.dataset(run.default_dataset_id).iterate_items():
29 print(item)
30
31