「Pythonの応用 - Google Sheets API」の版間の差分

ナビゲーションに移動 検索に移動
(ページの作成:「== 概要 == * 大量のデータを扱う場合 *: gspread-pandas *: <br> * 細かい書式設定が必要な場合 *: gspread *: Google Sheets API <br><br> == サービスアカウントキー == サービスアカウントキーは、Google Cloud Platformで発行されるサービスアカウントの認証情報が含まれるJSONファイルである。<br> <br> 以下に示す手順で取得することができる。<br> <br> # Google Cloud Platform (GCP)…」)
 
 
71行目: 71行目:
  scope = ['https://spreadsheets.google.com/feeds',
  scope = ['https://spreadsheets.google.com/feeds',
           'https://www.googleapis.com/auth/drive']
           'https://www.googleapis.com/auth/drive']
  credentials = ServiceAccountCredentials.from_json_keyfile_name('<your-credentials.json>', scope)
  credentials = ServiceAccountCredentials.from_json_keyfile_name('<サービスアカウントキー>', scope)
  gc = gspread.authorize(credentials)
  gc = gspread.authorize(credentials)
   
   

案内メニュー