1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "domains": ["stripe.com"],
10 "sampleContacts": [
11 {
12 "email": "john.doe@stripe.com",
13 "firstName": "John",
14 "lastName": "Doe",
15 "source": "crm-row-101",
16 },
17 {
18 "email": "jane.smith@stripe.com",
19 "firstName": "Jane",
20 "lastName": "Smith",
21 "source": "crm-row-102",
22 },
23 ],
24 "targetContacts": [
25 {
26 "fullName": "Alex Taylor",
27 "domain": "stripe.com",
28 "sourceId": "lead-001",
29 },
30 {
31 "firstName": "Morgan",
32 "lastName": "Lee",
33 "domain": "stripe.com",
34 "sourceId": "lead-002",
35 },
36 ],
37}
38
39
40run = client.actor("automation-lab/email-pattern-finder").call(run_input=run_input)
41
42
43print("πΎ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
44for item in client.dataset(run["defaultDatasetId"]).iterate_items():
45 print(item)
46
47