However, I was able to find a solution, and for the sake of the other readers I wanted to share it here. To view the status code, print the object or use r.status_code. After using requests.post(url, data=d), I got the status code 401 (which stands for an Unauthorized Error). However, it didn't work right off the bat for me. Great post, James! I needed to do a similar task with google forms, and this was very helpful. Now, In Python I created a dictionary with the value of name attributes that we copied from the browser as keys and the data that I want to fill in the corresponding field as it's value. I copied every name attribute value of the field. So, I opened the google form in chrome and Started inspecting Input element in which I will be filling the data, and I found a bunch of ss-form-entry objects with name attribute like " name = entry. And I came to know that Every Google Form Input element has a "name" attribute attached to it and we can use it to send the data for the corresponding field. But also, Attendance is Engineer's Only Motivation to attend lectures.Īnd So, I decided to use Python and to write a script to automate this tedious task.Īs usual, I started by searching on google to see how can we submit the google form using python script. Filling form 4 times a day with the subject name and corresponding time and professor details is a tedious task. And so, our college decided to take online lectures and also, sent us a google form which is to be filled every day for each lecture to fill attendance. To fight Corona Virus, our Prime Minister has declared lockdown for 21 days in all over the country.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |