Skip to content

Instantly share code, notes, and snippets.

View keilabcs's full-sized avatar
🏄

Keila Barbosa keilabcs

🏄
  • Cin/UFPE
  • Maceió - AL
View GitHub Profile
@keilabcs
keilabcs / google_forms_responses_to_docx.py
Created April 29, 2021 21:26 — forked from sebnil/google_forms_responses_to_docx.py
Convert Google Forms responses into a word document (docx) #script
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 = []