Skip to content

Instantly share code, notes, and snippets.

@jamesshah
Last active March 26, 2020 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesshah/c9ad0743807aef2aeba88e5a947efe8d to your computer and use it in GitHub Desktop.
Save jamesshah/c9ad0743807aef2aeba88e5a947efe8d to your computer and use it in GitHub Desktop.
def send_attendance(url, data):
"""It takes google form url which is to be submitted and also data which is a list of data to be submitted in the form iteratively."""
for d in data:
try:
requests.post(url, data=d)
print("Form Submitted.")
time.sleep(5)
except:
print("Error Occured!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment