1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "items": [
10 {
11 "title": "Shopify",
12 "categoryName": "Software company",
13 "website": "https://www.shopify.com",
14 "phone": "+1 888-746-7439",
15 "url": "https://www.google.com/maps/place/Shopify",
16 },
17 {
18 "name": "HubSpot",
19 "email": "press@hubspot.com",
20 "phoneNumber": "+1 888-482-7768",
21 "link": "https://www.hubspot.com",
22 },
23 {
24 "companyName": "Zoom Video Communications",
25 "description": "Video conferencing platform. Contact us at info@zoom.us for enterprise sales.",
26 "domain": "zoom.us",
27 },
28 {
29 "title": "Shopify Inc",
30 "website": "https://shopify.com",
31 "phone": "+1 888-746-7439",
32 },
33 {
34 "title": "Stripe",
35 "categoryName": "Payment processor",
36 "website": "https://stripe.com",
37 "phone": "+1 888-926-2289",
38 "emails": ["support@stripe.com"],
39 },
40 ],
41 "checks": [
42 "dedupe",
43 "email",
44 "domain",
45 "score",
46 ],
47}
48
49
50run = client.actor("zinin/lead-list-cleaner").call(run_input=run_input)
51
52
53print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
54for item in client.dataset(run["defaultDatasetId"]).iterate_items():
55 print(item)
56
57