A privacy-safe automation system that imports email lists into ActiveCampaign using a custom Python workflow.
# Fetch CSV from secure endpoint
response = requests.get(CSV_URL)
csv_data = response.content.decode('utf-8')
reader = csv.DictReader(csv_data.splitlines())
# Load known emails from local file
with open('known_emails.txt', 'r') as f:
known_emails = set(f.read().splitlines())
# Filter only new contacts
new_contacts = [row for row in reader
if row['email'] not in known_emails]
# Sync contact via API
contact_data = {
"contact": {"email": email},
"list": 10 # Auto-assign to list
}
response = requests.post(API_URL, json=contact_data)
log_result(email, response.status_code)
Let's build something that saves you time and keeps your data secure.
Let's build something →