1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "leads": [
9 {
10 "email": "info@example.de",
11 "countryCode": "DE",
12 },
13 {
14 "email": "jan.novak@example.sk",
15 "countryCode": "SK",
16 "source": "company website",
17 },
18 {
19 "email": "tom.baker@example.co.uk",
20 "countryCode": "GB",
21 },
22 {
23 "email": "lisa.chen@example.com",
24 "countryCode": "US",
25 },
26 ] }
27
28
29run = client.actor("phaz/cold-email-law-checker").call(run_input=run_input)
30
31
32print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
33for item in client.dataset(run.default_dataset_id).iterate_items():
34 print(item)
35
36