📢 Webサイト閉鎖と移転のお知らせ
このWebサイトは2026年9月に閉鎖いたします。
新しい記事は移転先で追加しております。(旧サイトでは記事を追加しておりません)

ページの作成:「== 概要 == * 大量のデータを扱う場合 *: 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)