View google_forms_responses_to_docx.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from docx import Document | |
from openpyxl import load_workbook | |
# edit these 3 parameters | |
xlsx_filename = 'Google Forms (Responses).xlsx' # input. export to xlsx from Google Drive. | |
xlsx_sheet_name = 'Form Responses 1' # which tab to extract data from | |
docx_filename = 'Google Forms (Responses).docx' # output | |
column_indexes = {} | |
responses = [] |