This Python script allows you to automatically submit responses to a Google Form. The script reads the Google Form ID and response data from a text file, enabling efficient and repeatable submissions.
README in VietNamese find that here
- Reads form data from a specified text file.
- Allows for multiple submissions in a loop.
- Configurable delay between submissions.
- Python 3.x
requests
library
-
Clone the repository or download the script:
git clone https://github.com/DangNhutNguyen/GOOGLE-FORM-AUTO.git cd google-form-auto-submission
-
Install the required library:
You can install the
requests
library using pip:pip install requests
-
Create a Text File:
Create a text file named
form_data.txt
in the same directory as the script with the following format:form_id: your_form_id entry_id_1: response_1 entry_id_2: response_2 entry_id_3: response_3 ...
How to collect the
form_id
:
The value above the red lines means form_id
. Complete Goolge Form links is https://docs.google.com/forms/d/form_id/formResponse
How to collect the entry.value
:
-
Press
Ctrl + Shift + I
to open the Developer Tools. This will bring up the console where you can enter custom scripts.Operating System Keys macOS altcmdi Windows ctrlshifti Linux ctrlshifti -
Visit the
Elements
(Near theConsole
) -
Press
Ctrl + F
to open the Find toolsOperating System Keys macOS cmdf Windows ctrlf Linux ctrlf -
Type in
entry.
- Find the
entry_id
for each question (Which meansnames:
) and theresponse
inform_data.txt
(Which meansvalues
) in each response answer
Example content of form_data.txt
:
form_id: 1FAIpQLSd1XexampleId
entry.1864374387: 18 - 25
entry.1101225596: 4
entry.634083696: 4
-
Run the Script:
Execute the script using Python:
python main.py
-
Input Number of Submissions:
When prompted, enter the number of times you wish to submit the form.
- Be mindful of the frequency of submissions to avoid being flagged for spam. Ensure that your use of this script complies with Google Forms' usage policies.
- If you encounter issues with form submissions, check that the form ID and entry IDs are correct.
This project is licensed under the MIT License. See the LICENSE file for details.
- Requests Documentation for the HTTP library.