1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "rows": [
10 {
11 "Full Name": "SMITH, JANE",
12 "Email": " Jane.Smith@Example.COM ",
13 "Phone": "(415) 555-0132",
14 "Country": "U.S.A.",
15 "Signup Date": "3/25/2024",
16 "City": "San Francisco",
17 },
18 {
19 "Full Name": "josé garcÃa",
20 "Email": "jose [at] example [dot] org",
21 "Phone": "0044 20 7946 0958",
22 "Country": "England",
23 "Signup Date": "March 5, 2024",
24 "City": "London",
25 },
26 {
27 "Full Name": "Dr. Anna van der Berg",
28 "Email": "anna@gmial.com",
29 "Phone": "030 23125 014",
30 "Country": "Deutschland",
31 "Signup Date": "14.02.2024",
32 "City": "Köln",
33 },
34 {
35 "Full Name": "Mark O'Neil Jr.",
36 "Email": "mark.oneil@example",
37 "Phone": "12345",
38 "Country": "Ireland",
39 "Signup Date": "31/02/2024",
40 "City": "Cork",
41 },
42 {
43 "Full Name": "Jane Smith",
44 "Email": "jane.smith@example.com",
45 "Phone": "+1 415 555 0132",
46 "Country": "United States",
47 "Signup Date": "2024-03-25",
48 "City": "San Francisco",
49 },
50 ],
51 "defaultCountry": "US",
52}
53
54
55run = client.actor("gazidev/contact-list-cleaner").call(run_input=run_input)
56
57
58print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
59for item in client.dataset(run.default_dataset_id).iterate_items():
60 print(item)
61
62