1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "data": [
10 {
11 "Company Name": " Acme Corp ",
12 "Email": "SALES@ACME.COM",
13 "Phone": "+1 (555) 123-4567",
14 "Website": "https://Acme.com/",
15 },
16 {
17 "Company Name": "Acme Corp",
18 "Email": "sales@acme.com",
19 "Phone": "555.123.4567",
20 "Website": "https://acme.com",
21 },
22 {
23 "Company Name": "Globex Inc",
24 "Email": "info@globex.io",
25 "Phone": "+1 555 987 6543",
26 "Website": "https://globex.io/",
27 "Details": {
28 "founded": 1998,
29 "tags": [
30 "b2b",
31 "logistics",
32 ],
33 },
34 },
35 ],
36 "dedupKeys": ["Email"],
37}
38
39
40run = client.actor("nerolabs/dataset-cleaner-exporter").call(run_input=run_input)
41
42
43print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
44for item in client.dataset(run.default_dataset_id).iterate_items():
45 print(item)
46
47