Google Sheets - Python API, Read & Write Data

Поділитися
Вставка
  • Опубліковано 5 лют 2025
  • Learn how to use Python and Google Sheets API to read and write data to a spreadsheet with a service account.
    Resources:
    console.develo...
    developers.goo...
    developers.goo...
    www.python.org/
    code.visualstu...
    developers.goo...
    #Python #api #google #sheets #read #write

КОМЕНТАРІ • 271

  • @par-medrealtyofficial4296
    @par-medrealtyofficial4296 Місяць тому

    Love this guy's personalty and teaching style.

  • @unknownentity330
    @unknownentity330 3 роки тому +8

    You are an absolute gent. Experimenting with Google APIs was daunting until being guided so eloquently. Thanks so much

  • @monireachtang712
    @monireachtang712 2 роки тому +2

    I have been struggling with Google APIs for days. Your explanation is so clear and easy to understand. Can't thank you enough.

  • @shellbot972
    @shellbot972 2 роки тому +17

    0:00 : Intro
    1:53 : Dependancy Installation
    3:45 : Authentication
    15:25: Reading Data
    19:54: Writing Data

    • @clasesutnfrc8699
      @clasesutnfrc8699 Місяць тому

      03:26 Authentication | Create a developer console
      04:27 Authentication | Activate Google Sheets API
      04:57 Authentication | Create service account
      06:21 Authentication | Create service account
      07:21 Authentication | Create service account | Create key
      09:15 Authentication | Connect service account
      11:46 Authentication | Access sheet
      12:41 Reading Data

  • @ilektrokioydio
    @ilektrokioydio Рік тому +2

    I cannot stress it enough how amazing this video is. You explain everything so well and with so much detail. All Google APIs have been making me go crazy and i never managed to use one, until this video! Just amazing work!

  • @jamesvandermost3802
    @jamesvandermost3802 2 роки тому +9

    I cannot tell you how great this video is. Literally so much easier to follow than googles documentation. Thank you so much.

  • @salterrific
    @salterrific 4 роки тому +33

    Please continue making these videos. I've tried learning apps script and the APIs on my own and it was very difficult without seeing examples. I don't have a computer science degree, but I do a fair amount of coding for my job and these tutorials have helped tremendously.

    • @Swonke
      @Swonke 3 роки тому +2

      Agreed. Google's documentation is extremely painful for a beginner. I would no have known that so much of the quickstart.py is useless for a basic get/update script.

    • @aidengrayson4056
      @aidengrayson4056 3 роки тому

      you all probably dont care at all but does someone know a trick to log back into an instagram account?
      I somehow forgot the account password. I love any help you can offer me!

    • @ifigetbannedagainyoutubeis2018
      @ifigetbannedagainyoutubeis2018 Рік тому

      I've found just messing around and trying to build basic things first as i read through the documentation helps me a lot

  • @TheLKStar
    @TheLKStar Рік тому

    This video is invaluable, this is much harder than I imagined.

  • @diegovel2
    @diegovel2 2 роки тому

    You rock! The Google docs are a mess and your video is insanely clear in comparison. I lost half a day battling with the Google documentation but thankfully you appeared.

  • @dipinkrishnan
    @dipinkrishnan 2 роки тому

    Really appreciate for creating this video. Was following the Google API docs and went into error loops. Following exactly what you mentioned worked. Thanks a ton. Cheers!

  • @RodrigoLobatorodrigo
    @RodrigoLobatorodrigo 3 роки тому +9

    Simply Awesome! I was struggling with google's API instructions and your tutorial made it look sooooo much easier. Thanks a bunch! It really helped me :)

  • @MarthaNelis
    @MarthaNelis 2 роки тому

    thank you SO much!! i have a deadline next week and this was an essential part of my code. you saved my grade :)

  • @JbotMischief
    @JbotMischief 3 роки тому +5

    I really like the way you present information, you make concepts accessible to people who may not have a formal technical background. Keep it up, I've learned several genuinely useful techniques/methods from you that I put to use in my work.

  • @gers6431
    @gers6431 3 роки тому

    My problem was making an API -> json. You explenaed it very good and understandeble for the Dutch people. Many thanks for the lessen also with the Python script 👍👍

  • @kunalyadav9873
    @kunalyadav9873 3 роки тому +1

    Excellent explanation. Am using the google sheet APIs for the first time and this saved a ton of time. Thanks!

  • @maximilianposch1000
    @maximilianposch1000 3 роки тому +1

    A really good explanation for the useless documentation!

  • @mateusbrancatodearaujo6671
    @mateusbrancatodearaujo6671 2 роки тому

    Awesome video! I like how you just cut to the chase.

  • @lanceposthumus318
    @lanceposthumus318 2 роки тому

    thank you so much for this video. it was straightforward to follow and made a lot more sense than reading through the documentation

  • @bhaskarsubramanian7092
    @bhaskarsubramanian7092 3 роки тому

    Thanks a lot for making this video. Explains how to access google sheets so much better than the google documentation.

  • @emadjabbour
    @emadjabbour 2 роки тому

    Thanx man i was working with chatgpt for this matter it didn't work until i watched your video and understood some details thank you so much

  • @bobharrison574
    @bobharrison574 11 місяців тому

    Thanks ... you demystified the approach for me!

  • @aiviral_
    @aiviral_ 3 роки тому

    WOW. Thank you, you just introduced me to a whole new world. Great explanation and loved the fact that you didn't cut the video so we could see your reasoning and debugging

  • @gunkov_egor
    @gunkov_egor 2 роки тому

    the best tutorial I've ever seen

  • @amitayudas1411
    @amitayudas1411 11 місяців тому

    great tutorial. highly appreciated. being a novice it took ages to understand it and also tect the code. requesting a follow on tutorial for updating live stock market date on google sheets using python. will be highly appreciated.

  • @marianogonzalez33
    @marianogonzalez33 3 роки тому

    Best tutorial about read and write out there

  • @nicoloretis6328
    @nicoloretis6328 3 роки тому +1

    This is really a great level of explanation.

  • @msssouza2
    @msssouza2 3 роки тому

    Thanks... that`s the best tutorial I have found...

  • @Baba_kasih
    @Baba_kasih 3 роки тому

    Man, this is still work, thank you bro.

  • @guillaumegeorges4430
    @guillaumegeorges4430 3 роки тому +1

    It works pretty well !
    I had to install "pip google-api-client" before to run the program

  • @purple5920
    @purple5920 3 роки тому

    Man i'm not gonna lie you earned your sub from my part. A very nice tutorial i'd absolutely recommend if someone asked me hw to use gsheets and py. Nicely done m8

  • @Retyioaqe
    @Retyioaqe Рік тому

    Thank you for this useful manual, it hepls me a lot!

  •  3 роки тому +1

    My friend, you're the best! thanks

  • @parkerschlank1713
    @parkerschlank1713 Рік тому

    Great tutorial. Extremely clear.

  • @basundharasharan5386
    @basundharasharan5386 2 роки тому

    Nice 👍 👍👍

  • @Achiesamablog
    @Achiesamablog 3 роки тому

    Thank you, this saved much of my time and efforts to simply read from gsheet.

  • @unubiopaluwa
    @unubiopaluwa 2 роки тому

    Thank you so much, your videos are simply the best out there. Thank you

  • @KC-hl4oj
    @KC-hl4oj 2 роки тому

    Thanks for this video - very easy to follow and understand 👍

  • @sucharithaanumula1849
    @sucharithaanumula1849 2 роки тому

    Thank you soo much
    Amazing video
    Works perfectly !!!!!

  • @amor9125
    @amor9125 3 роки тому

    only clear tutorial i've seen! Thank you so much!

  • @anumitamondal1320
    @anumitamondal1320 2 роки тому

    Thank you for explaining it so good. You should continue publishing your easy way of explaining more often.

  • @umitsarioz
    @umitsarioz 3 роки тому +1

    Perfect ! Thanks for your effort and clear presentation

  • @navillion
    @navillion 3 роки тому

    Thanks! I can finally create my own stat tracker with this!

  • @netboy1102
    @netboy1102 4 роки тому +2

    Thank you for all the tutorials. I have learnt alot from the Google sheets and App Script. I realized that there is much more for me to learn. And endless..

  • @McBobX
    @McBobX 2 роки тому

    This is so straight, clear and very helpful!

  • @pipeliner8969
    @pipeliner8969 4 роки тому +10

    This is gold, thank you!

  • @artstationideas6479
    @artstationideas6479 3 роки тому

    Wow you explained everything beautifully thank you so much

  • @muratparlak7601
    @muratparlak7601 3 роки тому +1

    Very great walkthrough, you also show a bit how you do the digging in the docks. Thank you very much. Gracias Muchas.

  • @zdinbalti
    @zdinbalti 3 роки тому

    finally did it. thank you for this video. explain everything perfectly.

  • @vitaliyking994
    @vitaliyking994 Рік тому

    You are amazing, you helped me very much.

  • @hola_chelo
    @hola_chelo 3 роки тому +1

    This is a gold mine man, thanks!

  • @Uxdkkkhcddvbh
    @Uxdkkkhcddvbh 3 роки тому

    Thank you soo much you are soo brilliant! Most concise, clear, easy to follow, well explained tutorial out there! Can't thank you enough

  • @amrihidayatulloh6883
    @amrihidayatulloh6883 2 роки тому

    Very helpful for my project!, thank you mate!

  • @jotape5791
    @jotape5791 3 роки тому

    You rock! Was trying to figure this out for a while but this made it very simple :)

  • @sejalbadgujar6522
    @sejalbadgujar6522 2 роки тому

    It was a great help. Thank you.

  • @vitorguilhermecoutinhodeba3253
    @vitorguilhermecoutinhodeba3253 3 роки тому

    Amazing explanation!

  • @ramirovaldes4889
    @ramirovaldes4889 3 роки тому

    Thanks for making this. It actually works!

  • @ΣυμεώνΠαπαδόπουλος-λ4ο

    Thank you for your great tutorials, I can't express my gratitude for the knowledge you provide us for free. Because I don't know about APIS and python I had a problem when I tried to install pip. The message was: pip3 : The term 'pip3' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was inclu
    ded, verify that the path is correct and try again. I would be grateful to anyone who can help. Thank you!

  • @hopaloba800
    @hopaloba800 Рік тому

    Спасибо, брат! Ты лучший!

  • @Johnathonaaron
    @Johnathonaaron 3 роки тому

    Great explanation. Thank you.

  • @rbsfinger
    @rbsfinger 2 роки тому

    Another great video. Thank you!

  • @waleedtahir4979
    @waleedtahir4979 3 роки тому +1

    Thank you very much for this!

  • @ossama3115
    @ossama3115 Рік тому

    Great work thanks a lot 😎

  • @adrianogoto4904
    @adrianogoto4904 3 роки тому

    Really nice tutorial. Thanks a lot for explaining it

  • @tarakeshnc7417
    @tarakeshnc7417 2 роки тому

    Thank you very much for this video.

  • @samer10101010
    @samer10101010 3 роки тому

    Many thanks ,ur video made my day

  • @carlostasaycosilva7739
    @carlostasaycosilva7739 3 роки тому

    Nice tutorial

  • @andresrojasmantilla5736
    @andresrojasmantilla5736 3 роки тому

    This is a very good example, thank you!!

  • @adamkatarn7413
    @adamkatarn7413 3 роки тому

    Man you're awesome x). Exactly what i needed ! Thanks a lot and keep inspiring people !

  • @viniciusventuraandreossi792
    @viniciusventuraandreossi792 2 роки тому

    Thank you so much! I have spent a while trying to learn this api and you made it incredibly easy and well explained! +1 sub :))

  • @shrikantbrahmankar5807
    @shrikantbrahmankar5807 2 роки тому

    Thanks, this video helped a lot

  • @ayanupadhaya6972
    @ayanupadhaya6972 3 роки тому

    Thank you for, by this thing first I scraped a news site then exported all the news headlines and links in my google sheet, thank a lot...

  • @CraigHollabaugh
    @CraigHollabaugh 3 роки тому

    Excellent example, just what I needed. Thanks.

  • @agvg3289
    @agvg3289 3 роки тому

    AWESOME!! Loved IT

  • @ConradBraam
    @ConradBraam 3 роки тому

    Very nice tutorial, easy and simple to follow, great job. Still not getting over "PieTon" though.

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  3 роки тому +1

      So what's the correct way?

    • @ConradBraam
      @ConradBraam 3 роки тому

      @@ExcelGoogleSheets Because the google cloud security setting up is rather complicated, the easy way to get set up i to watch a YT clip like your brilliant one here to get you over the tough bits. It helped a lot. I just had to giggle a lot, in English language, the 'h' is sometimes silent (not pronounced) but in python, it's not, it's a "th" sound, as in "thick". So the world is pronounced like "pie"-"thonn" , because you linger on the "n" a bit. Do keep sharing more of these tech explainer videos, great presentation skills!

  • @cibulskia
    @cibulskia Рік тому

    so nice and clear

  • @manojpc9589
    @manojpc9589 3 роки тому

    Thanks mate was really helpful

  • @3dmaxers
    @3dmaxers 3 роки тому

    Work like a charm 😉

  • @luis96xd
    @luis96xd 3 роки тому

    Excellent video, thank you so much!

  • @hirenvora8032
    @hirenvora8032 3 роки тому

    It helped me a lot!
    Thanks for the such a wonderful content.

  • @miguelmiloro1593
    @miguelmiloro1593 2 роки тому

    sous un genio amigo me re ayudo tu tutorial

  • @harshal.rathore
    @harshal.rathore 3 роки тому

    yeah they do change their UI like crazy fast. difference between a same video 1 year ago and this one is huge.

  • @suyambulingamr4753
    @suyambulingamr4753 2 роки тому

    Thanks for making this, I have a problem with while reading the data(can able to read the data, but the data is not formated) from google spread sheet
    Sample data
    1;03.05.2022 00:12:14;1,04992;1,05079;
    Column separator is ;
    but the problem is data's are reading in different format,
    existing output:
    1;03.05.2022 00:12:14;1, 04992;1, 05079;
    expected output
    1 03.05.2022 00:12:14 1,04992 1,05079

  • @loganathans7388
    @loganathans7388 4 роки тому

    Its very Good, thanks for this video.

  • @adamkovalak
    @adamkovalak 3 роки тому +1

    Absolute legend, thank you!

  • @navedakther4039
    @navedakther4039 4 роки тому +1

    Nice Video Sir please make more content how to use the other methods like clear, append using node.js

  • @PMS2529
    @PMS2529 Рік тому

    Can we not write to sheets by authenticating API with API key only? Service account creation or oautj is mandatory to update sheets?

  • @flmnvd
    @flmnvd 4 роки тому +1

    Very helpful! Thank you!

  • @AmritSingh-tr9eb
    @AmritSingh-tr9eb 3 роки тому

    This is very awesome!!!
    Thank you

  • @TKR911
    @TKR911 4 роки тому

    nicely done. I enjoy your videos, thank you.

  • @AshSmashReacts
    @AshSmashReacts 4 роки тому +1

    For get, is there a way to get the values with just the starting point or do you always need to have both?

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  4 роки тому +1

      I think if you skip the argument it gives you the whole worksheet, otherwise you need the specify the range.

  • @knalsgtes6684
    @knalsgtes6684 4 роки тому

    This is awesome, very detailed. Thanks and God bless. Already subscribed :)

  • @yeskavin
    @yeskavin 3 роки тому

    Thank you so much!
    This was really useful :)

  • @sambitmohanty4030
    @sambitmohanty4030 3 роки тому

    please put out more videos using python

  • @abdullohtursunov3380
    @abdullohtursunov3380 3 роки тому +1

    Just Fabulous!

  • @MarceloNashiro
    @MarceloNashiro 3 роки тому +1

    you are awesome, thank you!

  • @privatemind
    @privatemind 4 роки тому +1

    Thank you! This was so helpful

  • @surathi
    @surathi 3 роки тому +2

    NIce video.. one query - If I use google colab to create script then where to save secret_key.json and how to change our code as I am getting error 'ValueError: Authorized user info was not in the expected format, missing fields client_secret, refresh_token.

  • @Hamster_Off_Wheel
    @Hamster_Off_Wheel Рік тому

    Hey, what changes to be made if access is to be requested as well to read the spreadsheet?

  • @josuequintero10
    @josuequintero10 Рік тому

    Hello! I have a question regarding the accounts to interact with the API. How could I create accounts for users who are going to access the spreadsheet to save or read information?

  • @martybrals9748
    @martybrals9748 4 роки тому +2

    Thanks a lot, this helped a lot!