How to Use Google Sheets With Python (2023)

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ก.ย. 2024

ความคิดเห็น • 123

  • @isaacnaughton5206
    @isaacnaughton5206 2 ปีที่แล้ว +11

    If I could upvote this more, I would. After spending a number of hours looking at outdated methods of connecting to GSheets via Python, I came across this video and managed it within 5 minutes. Thanks very much.

    • @urbaneplanner
      @urbaneplanner 2 ปีที่แล้ว +3

      same here - I was missing a couple steps after reviewing the official materials, which this video laid out nicely

  • @horsdvours6953
    @horsdvours6953 11 หลายเดือนก่อน +1

    Dug through several methods that didn't work - this one worked perfectly. Thank you very much!

  • @_Software_developer_
    @_Software_developer_ 9 หลายเดือนก่อน +2

    After 200 tries finally got your video and successfully done 👍

  • @keshavsharma9380
    @keshavsharma9380 2 ปีที่แล้ว +8

    First! Btw you helped me a lot in early days of my Python programming. Thanks!

  • @ceo-s
    @ceo-s ปีที่แล้ว

    I had so many unexpected errors while trying authorize with another methods... Thank you so much! Helped alot!

  • @roka98
    @roka98 2 ปีที่แล้ว +8

    Very simple and useful. Thank you for great lesson!

  • @jacobzak7494
    @jacobzak7494 7 หลายเดือนก่อน

    Thank you so much! That's actually works! The video is clear, short and helpful!

  • @MH-oc4de
    @MH-oc4de ปีที่แล้ว +2

    Dude, that was awesome! Thanks for clearly explaining this through a working example.

  • @blackchristiangeek
    @blackchristiangeek 2 ปีที่แล้ว

    Update: Since my original post, I have gotten the code to work and started exploring the infinite possibilities and wanted to say again, thank you. I am working through my rust as I have note written much code for a while now and this give me a leg up since I'm a Google Apps customer. I'm ready to help others now 😅

  • @tobiaszwojnar1465
    @tobiaszwojnar1465 2 ปีที่แล้ว

    I could not figure out how setting up cloud console works, but now I do. Thanks soo much

  • @FRIKIdelTO
    @FRIKIdelTO 8 หลายเดือนก่อน

    Great tutorial. Thank you so much. Very helpful to me!!!!

  • @arseniimustafin3525
    @arseniimustafin3525 2 ปีที่แล้ว

    Thank you! This is so handy! I tried to understand their tutorial and it left me confused, and then I watched this video and everything became crystal clear!

  • @lloydino
    @lloydino ปีที่แล้ว

    honestly, so helpful. Every comment's saying the same thing so we know it's true

  • @Fanta666
    @Fanta666 ปีที่แล้ว

    thank you so much! I was getting so lost in the weeds of the google API docs, this was a godsend

  • @mohabkhaled1391
    @mohabkhaled1391 2 ปีที่แล้ว +8

    Super! as usual pretty printed, wondering about two things, can the graphics of GCP workplace products (docs, sheets, slides.. etc.) be integrated with my front end (I'm using React, and the libs I could find for word docs and sheets aren't all that), the second can this be a kick start for a GCP series?
    Thanks for the consistent awesome work during the years man.

  • @urbaneplanner
    @urbaneplanner 2 ปีที่แล้ว

    great overview - everything worked well for me after I installed based on the requirements file

  • @paulofagandini8877
    @paulofagandini8877 ปีที่แล้ว +1

    Very good video, super clear and straight to the point, thanks!

  • @poloi3440
    @poloi3440 ปีที่แล้ว

    Thank you very much, I spent 1h trying to understand that and with your vid it took me like 15min lmao

  • @synkronyze93
    @synkronyze93 2 ปีที่แล้ว +4

    Very Helpful! Can you do a list of the formulas that can be use to update cells?

  • @botelhorui
    @botelhorui 2 ปีที่แล้ว +6

    Very good, simple, clear, effective. Recommendations for next time, you can try: 1) Start with short pseudocode (as documentation) to enable higher thinking and reduce programming details noise. 2) Split browser and IDE vertically to reduce feedback time. Good luck!😀

  • @gavinjohn9998
    @gavinjohn9998 2 ปีที่แล้ว +1

    Simple to follow, worked perfectly, thank you!

  • @laherikeval2524
    @laherikeval2524 11 หลายเดือนก่อน +1

    Great video thank you for such a great content.

  • @europeanunion5765
    @europeanunion5765 2 ปีที่แล้ว +1

    Thx for the 101, I really wished that you showed us how to append at the end / first empty row though. I think this is more important than "modify" and "remove".

  • @butchdavis2062
    @butchdavis2062 2 ปีที่แล้ว +4

    Absolutely brilliant. I'm currently a temp at Google and this is going to help me land a permanent role with them by the end of the month
    Bravo

    • @paulus4443
      @paulus4443 2 ปีที่แล้ว

      Did you get the job?

    • @butchdavis2062
      @butchdavis2062 2 ปีที่แล้ว +2

      @@paulus4443 No but I'm making even more $ working at my new company!!!

    • @praveen16007
      @praveen16007 ปีที่แล้ว

      @@butchdavis2062 Would love to get an interview there xD

  • @devpolybytes
    @devpolybytes ปีที่แล้ว

    Thank you so much for the tutorial, it was a huge help and very straight to the point! One thing I would like to say though is that I don't think your variable names are very descriptive and this video being found by someone who is relatively new to programming may see this and subconsciously form a bad variable naming habit.

  • @rrealityy
    @rrealityy 2 ปีที่แล้ว +1

    This helped me out a ton - great video!

  • @brentsimpson3791
    @brentsimpson3791 2 ปีที่แล้ว +1

    Thank you! Very clear and concise.

  • @DanteDerette
    @DanteDerette 2 ปีที่แล้ว +1

    Nice Video Antonhy, Thank yooou!

  • @alexandruion4686
    @alexandruion4686 11 หลายเดือนก่อน

    Good video! It helped!

  • @blackchristiangeek
    @blackchristiangeek 2 ปีที่แล้ว

    Awesome, awesome, awesome, and just what I was looking for. You, my friend, have a new subscriber. Thanks, and God bless

  • @Ultrajamz
    @Ultrajamz 2 ปีที่แล้ว +1

    I have been given a json file key at work, but I do not have access to the service account itself to do this.. whats the best way to proceed? I’d like to be able to use python as a backend for updating a sheet others can see.. I guess I have to not use the service account and use my google user account?

  • @TheArtofCodeIsCool
    @TheArtofCodeIsCool 2 ปีที่แล้ว

    (New Things Learned) / Time > Most Videos => Thanks!!!

  • @Anonymous-co3jv
    @Anonymous-co3jv 2 ปีที่แล้ว +3

    Amazing!
    One thing I feel missing though. How do you add/update to the end of the worksheet.

    • @Anonymous-co3jv
      @Anonymous-co3jv 2 ปีที่แล้ว +2

      The code to update new row at the end
      ```
      last_row = (len(sh.get_all_values()))
      i = str(last_row+1)
      sh.update('A'+i+':C'+i, [['Cell Value' , 'Cell Value' , 'Cell Value']])
      ```

    • @EpicCouchPotatoes
      @EpicCouchPotatoes 2 ปีที่แล้ว +1

      @@Anonymous-co3jv Error for this code: "AttributeError: 'Spreadsheet' object has no attribute 'get_all_values'"

  • @hungphan
    @hungphan ปีที่แล้ว

    Best explaination. Cant expect more

  • @bulik1384
    @bulik1384 7 หลายเดือนก่อน

    thanks you so much bro!

  • @jag353
    @jag353 ปีที่แล้ว

    Very elegant, appreciate it!

  • @juanbaruque2246
    @juanbaruque2246 2 ปีที่แล้ว

    Just what I needed. Thanks!

  • @sicco9326
    @sicco9326 ปีที่แล้ว

    Very nice tutorial ! Keep it up!

  • @alirahmani7815
    @alirahmani7815 ปีที่แล้ว

    Thank you. It is very useful

  • @justinbirchard1298
    @justinbirchard1298 ปีที่แล้ว

    Excellent video, thank you very much!

  • @yiannishadjiyianni7737
    @yiannishadjiyianni7737 2 ปีที่แล้ว

    Thank you! Great tutorial

  • @stevenlomon
    @stevenlomon ปีที่แล้ว

    Thank you for this tutorial!!

  • @alan-j
    @alan-j 2 ปีที่แล้ว +1

    @prettyprinted can you also show a list of methods that are avaiable under the worksheet module?

  • @krishnagarg6870
    @krishnagarg6870 2 ปีที่แล้ว

    Concise and clear!

  • @ulka7777
    @ulka7777 ปีที่แล้ว

    Great, thanks for sharing.

  • @ivanovchin
    @ivanovchin ปีที่แล้ว

    Thanks, I from Russia and this video help me

  • @firealarmapprentice4517
    @firealarmapprentice4517 ปีที่แล้ว

    Great video, I want to populate a google sheet with data coming from my serial port.

  • @sewasup9816
    @sewasup9816 2 ปีที่แล้ว

    Thank you very very veryyyyyyyyyy much for this tutorial !!!

  • @zahoorahmadkareemi6267
    @zahoorahmadkareemi6267 2 ปีที่แล้ว

    Very helpful, please make a video on "How to get daily employees activities updates from google sheet using python

  • @redasaidi999
    @redasaidi999 2 ปีที่แล้ว

    very nice and simple, thanks

  • @theusurper
    @theusurper 2 ปีที่แล้ว

    Just pretty printed dropping gold content

  • @bassamry
    @bassamry 2 ปีที่แล้ว

    Thanks for the clear tutorial!
    is it possible to send events from the gsheet to the python script? i.e. is there and api for the puthon to listen to changes in the shett?
    my usecase is that i have a large sheet that i need to capture the changed cells only rather than reading the whole thing.

  • @acezflo641
    @acezflo641 2 ปีที่แล้ว

    i dont get making the file in the appdata folder. how would i be able to make a folder on my drive containing both my main.py and my json?

  • @AnotherOneTF
    @AnotherOneTF 2 ปีที่แล้ว

    thank you! i love your video

  • @Kennethlumor
    @Kennethlumor 2 ปีที่แล้ว

    Sir please please and please I beg you help me do a video on how to add a search 🔎 systems to the flask app.

  • @armaankhaitan6741
    @armaankhaitan6741 ปีที่แล้ว

    UserWarning: [Deprecated][in version 6.0.0]: method signature will change to: 'Worksheet.update(value = [[]], range_name=)' arguments 'range_name' and 'values' will swap, values will be mandatory of type: 'list(list(...))' How do I get rid of this messsage?

    • @prettyprinted
      @prettyprinted  ปีที่แล้ว

      You'll have to use the new style of code they want. I'll probably make an updated version of this video using the new style.

  • @Kennethlumor
    @Kennethlumor 2 ปีที่แล้ว

    I watch ur earlier video on on how to add using whoosh but I'm just getting (no module found flaskext) sir please help me

  • @francescovadala4731
    @francescovadala4731 11 หลายเดือนก่อน

    I cannot wrap my head around why executing the python script would take this long. I ran the same script with a very small sheet 9x4 (RxC), no formulas, no conditional formatting, and still the script takes 10 to 15 min to run. Does anyone have an idea what may make it so slow?

  • @ofernandez22
    @ofernandez22 ปีที่แล้ว

    great tutorial, i have a quetion this google apis , have any cost?

  • @paulapoblete1090
    @paulapoblete1090 2 ปีที่แล้ว

    This is so cool, how can I learn as a total beginner?

  • @aleksey3231
    @aleksey3231 ปีที่แล้ว

    What about insert matplotlib graph to spreadsheet?

  • @4brothers943
    @4brothers943 2 ปีที่แล้ว

    Don't know what to say, it's a Awesome !!

  • @anjanikumar3042
    @anjanikumar3042 2 ปีที่แล้ว

    very helpful !!

  • @_eevee396
    @_eevee396 2 ปีที่แล้ว

    Thank you so much!!!

  • @PeterSodhi
    @PeterSodhi ปีที่แล้ว

    Good job

  •  ปีที่แล้ว

    no ver xq solo es como imrpimir data y borrar filas en sheets , no hay dashboard

  • @BadMeditator
    @BadMeditator ปีที่แล้ว

    Hello. It takes forever to run the command, 'python script.py'. What can I fo?

    • @prettyprinted
      @prettyprinted  ปีที่แล้ว

      Most of the slowness will be because of the API call to Google's servers. The library is just a wrapper around the API.

  • @michaelkeith5398
    @michaelkeith5398 ปีที่แล้ว

    I was able to use this video to get a Bokeh dashboard hosted on AWS that uses data from Google Sheets, but it only works if you are signed into the account with the API enabled. Any way to make it so anyone can view the dashboard?

    • @michaelkeith5398
      @michaelkeith5398 ปีที่แล้ว

      Nvm it was user error. And just so everyone knows, I’m smart enough to get a bokeh app hosted on aws. Too dumb to realize that accessing the url with or without / character at the end can make the difference between whether it’s viewable or not 😂

    • @prettyprinted
      @prettyprinted  ปีที่แล้ว

      @@michaelkeith5398 haha glad you figured it out.

  • @Apopjak
    @Apopjak ปีที่แล้ว

    u re amazing!

  • @princecharmie1376
    @princecharmie1376 2 ปีที่แล้ว

    Is there any money require to create Google developer account

  • @lucca6094
    @lucca6094 ปีที่แล้ว

    how can i make an .exe file without loosing my token.json?

  • @KamilCzajka-j9u
    @KamilCzajka-j9u ปีที่แล้ว

    Hi , what app do you use editing python script? And what OS ?

    • @prettyprinted
      @prettyprinted  ปีที่แล้ว

      I use VS Code on Windows with WSL.

  • @syed2396
    @syed2396 9 หลายเดือนก่อน

    nice

  • @Gioseeeppe
    @Gioseeeppe 11 หลายเดือนก่อน

    nice video, one question, the results from the google spredsheet is in clear and if it is how can I encrypt it?

  • @susanca8443
    @susanca8443 9 หลายเดือนก่อน

    Thank you for sharing. I followed and authorised everything, but still getting an error create_connectionsock.connetction(sa) error

  • @mohammadabdullah9777
    @mohammadabdullah9777 2 ปีที่แล้ว

    You just missed how to Read the data from Google sheets as a Dataframe.
    For that just use the following code snippet:
    # get_all_values gives a list of rows.
    rows = wks.get_all_values()
    print(rows)
    # Convert to a DataFrame and render.
    import pandas as pd
    testf = pd.DataFrame.from_records(rows)
    testf

  • @simonbook1587
    @simonbook1587 2 ปีที่แล้ว

    what is the program at 2:46

  • @timo_b3
    @timo_b3 2 ปีที่แล้ว

    awesome!

  • @I_O_O_I
    @I_O_O_I 2 ปีที่แล้ว

    What are the commands if using Mac, not Linux or Windows?

    • @AhmadFIksan
      @AhmadFIksan 2 ปีที่แล้ว

      Mac is Unix based system, so it should have similar commands with Linux

  • @sketchwaretagalogtutorials
    @sketchwaretagalogtutorials ปีที่แล้ว

    🎉🎉🎉 it worked

  • @shashiranjan7451
    @shashiranjan7451 2 ปีที่แล้ว

    awesome awesome!!

  • @CharlesLau-k2c
    @CharlesLau-k2c ปีที่แล้ว

    you are a fucking king excellent tutorial

  • @alexanderkorniychuk9410
    @alexanderkorniychuk9410 2 ปีที่แล้ว +1

    what text editor are you using?

  • @alexdarlington4072
    @alexdarlington4072 2 ปีที่แล้ว +1

    I get SpreadsheetNotFound.

  • @dmbrv
    @dmbrv 2 ปีที่แล้ว

    nice video

  • @fishmasterkg2062
    @fishmasterkg2062 2 ปีที่แล้ว

    B-R-I-L-L-I-A-N-T-!!!

  • @jamesacosta6090
    @jamesacosta6090 10 หลายเดือนก่อน

    did not work for windows

  • @ammadniazi2906
    @ammadniazi2906 ปีที่แล้ว +1

    Guys Following command (given in the description of this video for windows) is giving the syntax error, how you guys resolved it.
    move credentialsfile.json %APPDATA%\gspread\service_account.json

    • @florio6938
      @florio6938 ปีที่แล้ว +1

      Mine too, have you solved it?

  • @aneetakhoso384
    @aneetakhoso384 2 ปีที่แล้ว +1

    so i need to pay $300 ?

    • @aneetakhoso384
      @aneetakhoso384 2 ปีที่แล้ว +1

      hmm, well, i was so new to google developer, took a while to figure out that you dont have to go through the setup that displays upon landing the page. can just create project for free, without going through the $300 setup. keep comment here instead of deleting incase it helps another noob out.

    • @sicco9326
      @sicco9326 ปีที่แล้ว

      @@aneetakhoso384 im a noob, how did you do it? I still have to create the google cloud account I guess?

  • @abhijeetchoudhary1765
    @abhijeetchoudhary1765 2 ปีที่แล้ว

    how to add this data in a dataframe?

  • @mrm8818
    @mrm8818 2 ปีที่แล้ว

    this is already out of date

  • @slippertopia
    @slippertopia 2 ปีที่แล้ว

    Very detailed. I like it.

  • @vincesnetterton2515
    @vincesnetterton2515 ปีที่แล้ว

    Question, actually multiple questions. I am using Python 3.7 on Windows. Can I use this to access my own personal Googlesheets with Google Developer?

  • @Alexa89715
    @Alexa89715 ปีที่แล้ว

    Oh my God, man, thank you so much!!!!!! I'm stuck at the API tracking stage and thank you that Google's algorithms gave me you, my God, thank you for existing! Good luck and all the best to you!

  • @tabraizcreation7689
    @tabraizcreation7689 2 ปีที่แล้ว

    Watched for 3 mints as it was required to setup GCP and key correctly then moved to github and gspread docs :-D

  • @kuaranir2440
    @kuaranir2440 ปีที่แล้ว

    Thanks! So useful and understandable

  • @RatnakarDutt
    @RatnakarDutt 2 ปีที่แล้ว

    It helped me. thanks a lot.

  • @레몬워터-s8h
    @레몬워터-s8h 2 ปีที่แล้ว

    easy and clear :)

  • @sprokgnv9436
    @sprokgnv9436 2 ปีที่แล้ว

    Amazing! Thanks a lot!

  • @erectlocution
    @erectlocution 2 ปีที่แล้ว

    Curious--and I'll give it a try to find out--but does this hook into the Google Sheets versioning functionality, such that the changes are undoable? If it does it's not in the documentation, but maybe that's just a Google Sheets domain thing and not something they leave up to clients.