Last active
March 26, 2020 09:44
-
-
Save jamesshah/c9ad0743807aef2aeba88e5a947efe8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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