The easiest way to connect to Google Spreadsheet is to use this spreadsheet library . Here are the steps you need to follow:
import gspread
gc = gspread.login('account@gmail.com','password')
spreadsheet = gc.open("_YOUR_TARGET_SPREADSHEET_")
worksheet = spreadsheet.get_worksheet(0)
worksheet.update_cell(1, 2, form_value_1)
source
share