반응형

Google spreadsheet api 4

[Python/GoogleSpreadSheet API] GoogleSpreadSheet 데이터 삽입, 삭제

이번 포스팅에서는 googlespreadsheet api를 활용한 데이터 insert, 데이터 제거에 대해 알아봅니다. Api 세팅 def api_setting(): scope = ['https://www.googleapis.com/auth/spreadsheets' ,'https://www.googleapis.com/auth/drive'] json_file_name = 'asset_management_key.json' credentials = ServiceAccountCredentials.from_json_keyfile_name(json_file_name, scope) gc = gspread.authorize(credentials) creds = None creds = service_account.Cre..

[Python/GoogleSpreadSheet API] GoogleSpreadSheet 시트이름 및 시트탭 변경

Api 세팅 def api_setting(): scope = ['https://www.googleapis.com/auth/spreadsheets' ,'https://www.googleapis.com/auth/drive'] json_file_name = 'asset_management_key.json' credentials = ServiceAccountCredentials.from_json_keyfile_name(json_file_name, scope) gc = gspread.authorize(credentials) creds = None creds = service_account.Credentials.from_service_account_file( json_file_name, scopes=scope ) ..

[Python/GoogleSpreadSheet API] GoogleSpreadSheet API 연동하기 (2)

구글 스프레드 시트 API 연동하기 (2) 이번 포스팅은 아래 포스팅에 이어 진행됩니다. https://ysyblog.tistory.com/353 [Python/GoogleSpreadSheet API] GoogleSpreadSheet API 연동하기 (1) 구글 스프레드 시트 API 연동하기 오랜만에 개인프로젝트를 하고 있는데, 이 프로젝트에 구글 스프레드시트 API를 활용하게 되었다. 예전에 구글스프레드시트 API를 잘 썼지만.. 오랜만에 쓰려고 ysyblog.tistory.com 이번 포스팅에서는 지난 포스팅에서 받은 Credential 파일을 활용하여 API를 연동해보겠습니다. 구글 스프레드 시트 API 관련 패키지를 import import gspread from oauth2client.servi..

[Python/GoogleSpreadSheet API] GoogleSpreadSheet API 연동하기 (1)

구글 스프레드 시트 API 연동하기 오랜만에 개인프로젝트를 하고 있는데, 이 프로젝트에 구글 스프레드시트 API를 활용하게 되었다. 예전에 구글스프레드시트 API를 잘 썼지만.. 오랜만에 쓰려고 하니 기억이 잘 나지 않았다. 따라서 이번 기회에 구글스프레드시트 API 사용법을 다시 정리해보게 되었다. 1. 아래링크로 들어갑니다. https://console.developers.google.com/projectselector2/apis/enableflow?apiid=drive&authuser=1&supportedpurview=project 2. 새 프로젝트를 만듭니다 프로젝트 만들기를 클릭합니다. 프로젝트 이름을 입력하고 만들기를 누릅니다. 3. 프로젝트에 구글스프레드시트를 추가 먼저" API 및 서비스"..

반응형