1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "leftItems": [
10 {
11 "email": "ana@acme.com",
12 "name": "Ana",
13 },
14 {
15 "email": "BEN@globex.io",
16 "name": "Ben",
17 },
18 {
19 "email": "cara@initech.com",
20 "name": "Cara",
21 },
22 {
23 "email": "dan@hooli.com",
24 "name": "Dan",
25 },
26 ],
27 "rightItems": [
28 {
29 "email": "ana@acme.com",
30 "status": "customer",
31 "owner": "Kim",
32 },
33 {
34 "email": "ben@globex.io ",
35 "status": "trial",
36 "owner": "Lee",
37 },
38 {
39 "email": "eve@umbrella.com",
40 "status": "lead",
41 "owner": "Kim",
42 },
43 ],
44 "leftKeys": ["email"],
45}
46
47
48run = client.actor("charlesmarkette/dataset-join-vlookup-merge-by-key").call(run_input=run_input)
49
50
51print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
52for item in client.dataset(run.default_dataset_id).iterate_items():
53 print(item)
54
55