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)) +