#autofill google forms

17 messages · Page 1 of 1 (latest)

grizzled pondBOT
#

@jagged quartz

apexscorpio Successfully Uploaded Some Code

Hello, im looking for a way to autofill a google form. Ive been trying to follow some videos on youtube step by step but i always get stuck at some point.

I have this code but the problem is that i always get this error:

DevTools listening on ws://127.0.0.1:61132/devtools/browser/fd569ad2-8fd8-42a9-b241-04ddafed309b
Traceback (most recent call last):
File "c:\Users\lopes\Documents\pytonapps\from selenium import webdriver.py", line 59, in <module>
fill_form(row[0], row[1], row[2], row[4], row[5], row[6], row[7])
File "c:\Users\lopes\Documents\pytonapps\from selenium import webdriver.py", line 16, in fill_form
questions_groups = driver.find_elements_by_class_name("Qr7Oae")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'find_elements_by_class_name'
PS C:\Users\lopes\Documents\pytonapps>

Uploaded these files to a Gist
novel pumice
#

Probably against their TOS

#

You agree not to access (or attempt to access) any of the Services by any means other than through the interface that is provided by Google, unless you have been specifically allowed to do so in a separate agreement with Google. You specifically agree not to access (or attempt to access) any of the Services through any automated means (including use of scripts or web crawlers) and shall ensure that you comply with the instructions set out in any robots.txt file present on the Services.

hallow harness
#

And it's probably against whatever the form is used for.

jagged quartz
#

it is not

#

this is just form we need to fill everyday to report anormalies in the cars (if any)

#

its for the ambulance. Every day we need to fill it almost the same (apart from Km's and date or if something gets broken). And we spend 5 mins doing it that will delay how fast we can call our dispacher saying: "We are operacional"

#

so, the faster this is done, the faster we are able to recive emergency calls

#

my coordinator doesnt care if its done by a script, by hand, by a dog or by the miracle of a magical toad. He just wants it done so he can control if that car has something broken and to control how many Kms it was done that day

#

thats why i dont want the script to auto submit it. I just want it to fill it. I will check if everything is ok then i manually submit it

stray oracle
#

The proper thing to do here would be to ask them to change the form to have default selected things so you just click "save" if nothing special happens

jagged quartz
#

im doing this with his concent. He doesnt want to change anything in the form. He doesnt understand a thing of computers and he doesnt want to spend time with that. He just said: "if you can do it, just do it"

stray oracle
#

Automating Google services is a BIG pain

jagged quartz
#

right now i think this would be fairly simple. I just needed to say: "this text box write this. This drop down menu, open it and select the option with this text"

#

thats what the script is about

coarse iris
#

So they're actively going to be trying to block your ability to automate doing so and attempting to get around the limitation could result in your Google accounts being terminated