Skip to main content

A simple Python library to submit Google Forms in Python.

Project description

A simple Python library to submit Google Forms in Python.

The goal is to be able to submit Google Forms from anything else than a web page (a Desktop app, or any device that doesn’t use a browser).


pip install PyGoogleForm

How to use

First, create your form in Google Form, and then click “view live form”. Then in your code:

import PyGoogleForm
# Use the url of the page to initialize the GFParser
url = ""
gForm = PyGoogleForm.GFParser(url)

# Get the questions by IDs
questionIDs = gForm.getQuestionIDs()
question1 = gForm.getQuestionInfo(questionIDs[0])
# question1 == [ID, type, question text, [possible choices]]

# Answering a question
gForm.answerQuestion(question[0], "ok")

# Finally, submit the form


  • can handle only basic types: radio, select, checkbox, text, paragraph text
  • doesn’t support “required” answers. The form is submitted and the answer recorded in the answer sheet


The project uses a permissive MIT Licence. Do whatever you want with it.


Special thanks to Kristler on Reddit for the inspiration.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for PyGoogleForm, version 0.5
Filename, size File type Python version Upload date Hashes
Filename, size PyGoogleForm-0.5.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page