Automating Google Forms Submissions with Python
Skills:
Python for Data80%
Key Takeaways
Automating Google Forms submissions using Python with Selenium and Beautiful Soup
Full Transcript
what's up guys welcome to another video and in this video i want to talk about this article i wrote called automating form submissions with python what i did here was i set up an automation to automate the process of filling in web forms using selenium and beautiful soup and i'm going to walk you through how to do that let's get started i turned my article into this kind of like slide presentation because i wrote it on jupiter notebooks which is pretty cool because now i can easily explain and go to the codes let's start by taking a look at well first we get the imports basic stuff the steps are going to be set up your answers as a csv file then we'll inspect necessary web elements by type of input and then we'll set up the url in the driver we'll access the web address we'll send the keys for the text-based inputs we'll send clicks for checkbox to type inputs and then access and click the submit button to finish and loop over the database and submit the answers for each user so let's get started so first things first we set up a i set up a easy simple google forms so that i can use it as a template generated data for the people using python's faker framework and then i said i put that in the database and you know now i have uh i have the data here um what i did is i inspected necessary web elements five type of input i go to the google forms link and i inspect each element to get what i need so that i can automate the process of filling in that platform so in this case i just went through the previous link of my google forms i had three questions and were two are tech space and one was multi-select so these were the web elements that i had to use after that i set up the the elements here so text quest text question element class check box question class submit element class which is great because now i can just set up the url and the driver this is the url for the form and this is the driver with where i set the executable path to my chrome driver for my machine and now let's go through then finally i access the web address and then i send keys for text-based inputs which looks a little bit something like this this is the function i wrote for doing i this is the answer name age so i get a name age text answers text questions and then i send the keys to send the answers using the driver and then i return the driver so that i can continue to go through the automations after that i send the clicks for checkbox inputs and here are the it's a color index dictionary for the different colors and then this is the function to insert the checkbox and then i return the driver again finally i access and click the submit button to finish that's how i do that that submit find element by xpath return to driver again and then i loop over the database and i submit the answers for each user so i have my database that i created with uh python's fake framework and now i just i'm just look over the database and submit the answers from that database i have my database i then loop through the user ids in the database and then i submit the answers and that's pretty much it python is a great way to experiment with different types of automations and different things that you can do so that you can be more productive either using browser or you know using your desktop in general and that's it cheers
Original Description
A quick tutorial on how to automate the submission of forms using Python.
- Link for my article on Medium: https://towardsdatascience.com/automating-submission-forms-with-python-94459353b03e?sk=557a5b350afd031a07f023195e37be23
- Follow me on Medium: https://lucas-soares.medium.com/
- Join Medium: https://lucas-soares.medium.com/membership
- Twitter: https://twitter.com/LucasEnkrateia
- LinkedIn: https://www.linkedin.com/in/lucas-soares-969044167/
- Tiktok: https://www.tiktok.com/@enkrateialucca?lang=en
If you liked this video don't forget to like and subscribe! Thanks and see you next time! :)
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Automata Learning Lab · Automata Learning Lab · 6 of 60
1
2
3
4
5
▶
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
A Quick Tutorial on NLP Basics
Automata Learning Lab
Automating your Digital Morning Routine with Python
Automata Learning Lab
Exploring Problem Solving with Python and Jupyter Notebook #1
Automata Learning Lab
Summarize Papers with Python and GPT-3
Automata Learning Lab
An Experiment Tracking Tutorial with Mlflow and Keras
Automata Learning Lab
Automating Google Forms Submissions with Python
Automata Learning Lab
Productivity Tracking With Python and the Notion API
Automata Learning Lab
When your Machine Learning Model Fails Do This ;p
Automata Learning Lab
Machine Learning Tip#1 Practical Deep Learning Course
Automata Learning Lab
Machine Learning Tips: Deep Learning Monitor
Automata Learning Lab
Machine Learning Tips#5 MLOPs specialization in Coursera #machinelearning
Automata Learning Lab
Automatically Changing Desktop Wallpaper with Python and the Nasa Image API
Automata Learning Lab
Building an Image Classifier to Filter Out Unused Images From Your Photo Album with Machine Learning
Automata Learning Lab
Automating VS Code Snippets with Python
Automata Learning Lab
How to Set Up a Machine Learning Environment with Conda and Pip-Tools
Automata Learning Lab
9 Google Search Tips for Machine Learning
Automata Learning Lab
Thinking Tools
Automata Learning Lab
Automating Car Search with Python and Data Science
Automata Learning Lab
Generating Images from Text with Stable Diffusion and Hugging Face
Automata Learning Lab
A Practical Introduction to Data Science using the Spaceship Titanic Dataset from Kaggle
Automata Learning Lab
Jiu Jitsu App with Python and Streamlit
Automata Learning Lab
2 Apps for Coding In The Ipad Pro
Automata Learning Lab
From Tensorflow to Pytorch?
Automata Learning Lab
Building an Audio Transcription App with OpenAI Whisper and Streamlit
Automata Learning Lab
Productivity Tracking with Python Short Summary
Automata Learning Lab
Automating Expense Reports with Python
Automata Learning Lab
ChatGPT, Angry Pandas and AI Code
Automata Learning Lab
7 Strategies To Learn Anything Using ChatGPT
Automata Learning Lab
Building a Thought Summarization App with Whisper and GPT3
Automata Learning Lab
Visualize a Neural Net Learning Polynomial Functions
Automata Learning Lab
Automating Notion with Python
Automata Learning Lab
Pose Tracking for Jiu Jitsu - Update #jiujitsu #machinelearning
Automata Learning Lab
Update to my Pose Tracking for Jiu Jitsu Project #machinelearning #jiujitsu #ai #deeplearning
Automata Learning Lab
ChatGPT API Released by OpenAI
Automata Learning Lab
ChatGPT API Response Format #machinelearning #ai #datascience
Automata Learning Lab
Beyond Stable Diffusion with Composer | Automata Learning Lab Paper Series #1
Automata Learning Lab
Beyond Diffusion Models with Composer #machinelearning #ai
Automata Learning Lab
Machine Learning for Jiu Jitsu
Automata Learning Lab
Prompt Engineering Basics #machinelearning #gpt4 #chatgpt
Automata Learning Lab
Visual ChatGPT: Integrating Images with ChatGPT Paper Series#2
Automata Learning Lab
Visual ChatGPT #machinelearning #ai #artificialintelligence
Automata Learning Lab
LERF - Language Embeddings + NERF for Querying 3D Spaces #machinelearning #ai
Automata Learning Lab
Summarize Papers with Python and ChatGPT
Automata Learning Lab
Large Language Models can use Tools Now! #artificialintelligence #machinelearning #ai
Automata Learning Lab
Sparks of AGI in GPT4? #machinelearning #ai #agi #artificialintelligence
Automata Learning Lab
Toolformer: LLMs can use Tools! #chatgpt #llms #gpt4 #gpt3 #artificialintelligence
Automata Learning Lab
Talking to Your Notes with LangChain #artificialintelligence #llms #gpt4 #chatgpt
Automata Learning Lab
How to Talk to a PDF using LangChain and ChatGPT
Automata Learning Lab
Query Your Own Notes With LangChain
Automata Learning Lab
HuggingGPT #machinelearning #artificialintelligence #huggingface #gpt4 #chatgpt
Automata Learning Lab
Do as I Can Not as I Say Paper #artificialintelligence #llms #reinforcementlearning
Automata Learning Lab
Automating Anki Flashcards with OpenAI and GPT-4
Automata Learning Lab
Building A PDF Summarization App with Gradio and LangChain
Automata Learning Lab
Auto-GPT #artificialintelligence #gpt4 #llms #autogpt
Automata Learning Lab
DocGPT - Chat with Github #artificialintelligence #gpt4 #chatgpt
Automata Learning Lab
LLMs for Research and Planning #artificialintelligence #gpt4 #llms
Automata Learning Lab
How I Use ChatGPT for Interactive Language Learning
Automata Learning Lab
Building an Audio Transcription App with Gradio and Whisper
Automata Learning Lab
Summarizing and Querying Multiple Papers with LangChain
Automata Learning Lab
Mojo - The New AI Programming Language?
Automata Learning Lab
More on: Python for Data
View skill →
🎓
Tutor Explanation
DeepCamp AI