1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "records": [
9 {
10 "title": "ACME PLUMBING LLC",
11 "email": "INFO@AcmePlumbing.com",
12 "phone": "(512) 555-0134",
13 "website": "http://www.acmeplumbing.com/?utm_source=maps",
14 "city": "Austin",
15 "country": "us",
16 },
17 {
18 "title": "Acme Plumbing",
19 "emails": ["info@acmeplumbing.com"],
20 "website": "acmeplumbing.com",
21 "city": "austin",
22 },
23 {
24 "title": "Joe's Pizza",
25 "email": "joe@gmial.com",
26 "phone": "call us",
27 },
28 ] }
29
30
31run = client.actor("hiredhandai/lead-data-cleaner").call(run_input=run_input)
32
33
34print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
35for item in client.dataset(run.default_dataset_id).iterate_items():
36 print(item)
37
38