Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tufayellus/google-sheet-automation-with-python-gspread

This is a personal documentation repository for google spreadsheet automation using python and gspread library
https://github.com/tufayellus/google-sheet-automation-with-python-gspread

automation bot bots google-sheets google-sheets-api googledrive googlesheets googlesheetsapi gspread programming python

Last synced: 16 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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