- Video lesson
- Amber Isle wiki
- Additional example Python repo (this one contains an update script in addition to a page creation script)
Boilerplate code used in the class:
import csv
f = open('data.csv', mode='r', newline='')
# Load the CSV data
reader = csv.DictReader(f)
# Example of reusing the reader
for row in reader:
print(row)
# cleanup
f.close()