From 9466b2a74d28b5dda4389c45b42369127d3b649a Mon Sep 17 00:00:00 2001 From: Jeff Moe Date: Thu, 19 Sep 2024 12:03:24 -0600 Subject: [PATCH] Parse CSV Contacts stub --- hsparse/parse_csv_contacts.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 hsparse/parse_csv_contacts.py diff --git a/hsparse/parse_csv_contacts.py b/hsparse/parse_csv_contacts.py new file mode 100644 index 0000000..b4e0661 --- /dev/null +++ b/hsparse/parse_csv_contacts.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python3 +''' Read CSV contacts file exported from hubspot.''' + +import csv + +CSV="all-contacts.csv" + +print("Parsing" + CSV) + +with open(CSV, newline='') as csvfile: + contactreader = csv.reader(csvfile, delimiter=',', quotechar='"') + for row in contactreader: + print(', '.join(row)) +