Skip to content

This is a personal documentation repository for google spreadsheet automation using python and gspread library

License

Notifications You must be signed in to change notification settings

TufayelLUS/Google-Sheet-Automation-With-Python-Gspread

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Google Sheet Automation With Python Gspread Library

This is a personal documentation repository for google spreadsheet automation using python and gspread library

How to get credentials.json file?

  1. Make the spreadsheet available on google drive
  2. Open https://console.cloud.google.com/welcome and then create a project and activate that project.
  3. Go to APIs & Services and select Enable API and Services
  4. Enable "Google Drive API" and "Google Sheets API"
  5. Come back to "APIs & Services" and under "Credentials" side menu create a "Service account" from "create credential" option.
  6. Click on service account that got created(should appear at the bottom). Go to "keys" tab and create a new key as a JSON file, it will download automatically upon creation. That's the JSON file we need. Copy the service account email address and permit this email to become an editor of the spreadsheet that you want to edit with automation. Now rename the json file to "credentials.json" and place it with the python file and that's it!

How to install the required libraries?

In the terminal/command window, execute: pip3 install gspread oauth2client

Where can I get the Gspread Documentation?

It's here: https://buildmedia.readthedocs.org/media/pdf/gspread/latest/gspread.pdf

About

This is a personal documentation repository for google spreadsheet automation using python and gspread library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages