This script can fill and submit randomized responses to a Google Form.
Running it requires the following steps:
- Install Node.js on your computer (LTS release is fine)
- Download this script project and extract to a folder called
gform-fill
- Open a node.js command prompt using the new shortcut in your start menu
- Change into the directory where you extracted the script (e.g.
cd Downloads\gform-fill
) - Run
npm install
(this downloads some extra code that can run a browser in the background) - Begin filling with
npm start https://docs.google.com/forms/WHATEVER_YOUR_TARGET_FORM_IS/viewform
(replace with applicable url) - The form will be repeatedly filled 10,000 times or you stop the script with
CTRL + c
Responses are picked at random from the list in responses.ts
which you are free to edit using a plain text editor such as Notepad. Any number of responses may be included, so long as they are correctly formatted. (That is, surrounded with quotes and separated with commas.) Changes only apply after restarting the script.
You can introduce even more fun into the mix by letting a modern AI generate new text based on the pre-written responses mentioned above. Doing this requires a few more steps:
- Create a free account at DeepAI
- IMPORTANT: Click the link in the email they send to you afterwards to mark your account as verified
- From your logged-in profile page look for the
api-key
followed by a bunch of random characters. Copy those characters. - Open
value-generators.ts
in this script project. ReplaceYOUR_API_KEY_HERE
with the value copied from your profile. Save your changes. - Open
index.ts
in this script project. Findnew LongAnswer(generateFrom(preWrittenComments))
and replace withnew LongAnswer(generateFrom(aiComments))
. Save your changes. - Run the script as before with
npm start GOOGLE_FORM_URL