Giter VIP home page Giter VIP logo

accessgglss's Introduction

Access Google Spreadsheet from terminal

Uses gspread and oauth2client libraries

Setup:

  1. Clone the repo.
  2. Open https://console.developers.google.com/apis on your browser and create a project.
  3. On the Dashboard, add google drive api to your project
  4. Go to "Credentials" and put "Web Server" on the "Where you will be accessing the api from?"
  5. Give access to "Application data" and "No I'm not using them"
  6. Click on "What credentials do I need?"
  7. Create a service account giving it a name and give it a role of "Editor"
  8. Click "Continue" which will download a json file, rename it to anything you want and move it to the directory where you cloned the repo.
  9. Open the json file and copy the client_email.
  10. Create a google spreadsheet at https://docs.google.com/spreadsheets (Skip this if you already have a google spreadsheet)
  11. On your spreadsheet, share it to the client_email
  12. Open spreadsheet.py and change gglspreadsheet = 'To-do list' to gglspreadsheet = 'your_google_spreadsheet_name' and change jsonFile = 'Todo.json' to jsonFile = 'name_of_json_file_you_downloaded.json'
  13. Open terminal and run python spreadsheet.py

accessgglss's People

Contributors

pfieffer avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.