Parse CSV Contacts stub
This commit is contained in:
parent
d3db7ff5b2
commit
9466b2a74d
14
hsparse/parse_csv_contacts.py
Normal file
14
hsparse/parse_csv_contacts.py
Normal file
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue