Automate Google Sheets With Google Sheets API in Python

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 27. 07. 2024
  • Google Sheets offers a powerful platform for automating tasks, including managing spreadsheets and sending emails directly from your sheets. In this tutorial, we will dive into how to get started with Google Sheets API in Python.
    📋 Source Code: / source-code-with-10107...
    📋 google_apis.py Source Code: learndataanalysis.org/source-...
    📄 Google Sheets API Reference: developers.google.com/sheets/...
    💖 Show Support
    ☕ Paypal: www.paypal.me/jiejenn/5
    ☕ Venmo: @Jie-Jenn
    🌳 Patreon: / jiejenn (early access to tutorial source code)
    ✉ Business Inquiring: CZcams@LearnDataAnalysis.org
    00:00 - Use cases
    00:30 - Enable Google Sheets API
    01:50 - Set up OAuth Consent page
    03:44 - Download OAuth2 client secret file
    05:25 - Install Python Packages
    05:56 - Example. Create a Google Sheet file
    13:31 - Example. Read & Write & Clear cells
    #googlesheets #python

Komentáƙe • 5

  • @LawrenceHe
    @LawrenceHe Pƙed 3 měsĂ­ci

    hmmm i wonder if something similar can be done with smartsheet, gotta look at their api

    • @jiejenn
      @jiejenn  Pƙed 3 měsĂ­ci +1

      I am almost positive smartsheet has similar API for Python.

  • @divinerchan
    @divinerchan Pƙed 3 měsĂ­ci

    Sorry the code "from google_apis import create_service" that "google_apis" cannot be resolved. I have installed three packages as you said. For now, it has six packages about google in my Python. That are: google-api-core, google-api-python-client, google-auth, google-auth-httplib2, google-auth-oauthlib, googleapis-common-protos. How to solve this problem?

    • @jiejenn
      @jiejenn  Pƙed 3 měsĂ­ci

      The google_apis.py source code can be found here learndataanalysis.org/source-code-google_apis-py/

    • @divinerchan
      @divinerchan Pƙed 3 měsĂ­ci

      @@jiejenn Thank you very much.🙏