1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "serviceCategory": "digital-marketing",
10 "location": "United States",
11 "maxAgencies": 3,
12 "directorySources": ["google-maps"],
13 "emailTemplate": """Hi {{firstName}},
14
15I came across {{companyName}} and was impressed by your work in {{topService}}.
16
17I'd love to explore whether we might be a fit to work together.
18
19Would you have 15 minutes for a quick call this week?
20
21Best,
22[Your name]
23
24---
25To unsubscribe: {{unsubscribeLink}}""",
26 "emailSubject": "Quick question for {{companyName}}",
27 "finalStep": "none",
28 "proxyConfiguration": { "useApifyProxy": True },
29}
30
31
32run = client.actor("ryanclinton/agency-lead-gen-pipeline").call(run_input=run_input)
33
34
35print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
36for item in client.dataset(run["defaultDatasetId"]).iterate_items():
37 print(item)
38
39