Project

General

Profile

機能 #17

NGワードのGoogleスプレッドシートからの動的取得

Added by 寛正 鴨川 about 7 years ago. Updated about 7 years ago.

Status:
終了
Priority:
通常
Assignee:
Start date:
04/24/2019
Due date:
04/26/2019
% Done:

100%

Estimated time:

Description

認証まわりが課題と考えられる。

対応内容

Google Developer Consoleにて新規プロジェクト作成、API用のサービスアカウントを作成し対象のスプレッドシートの閲覧権限を付与。
gspreadパッケージを使ってコードから認証、シート上のデータ取得を行う。

認証情報が記載されたJSONファイルを配置し、ファイルを読み取って認証を行う。

景表法、薬事法の2つのリストの先頭セルをconfigファイルに設定するようにし、そのセルが属する列のうち先頭セル以下のセルの値を取得する。

補足

サービスアカウントを用いることで、認証をCLIで完結させることができた。
Google Developer Consoleでの初期セットアップが必要。

History

#1 Updated by 寛正 鴨川 about 7 years ago

  • Due date set to 04/26/2019
  • Status changed from 新規 to 進行中
  • Start date changed from 04/19/2019 to 04/24/2019
  • % Done changed from 0 to 10

#2 Updated by 寛正 鴨川 about 7 years ago

  • % Done changed from 10 to 30

#3 Updated by 寛正 鴨川 about 7 years ago

  • Description updated (diff)
  • % Done changed from 30 to 60

実装の目処が立ちました。

#4 Updated by 寛正 鴨川 about 7 years ago

  • Description updated (diff)
  • Status changed from 進行中 to 終了
  • % Done changed from 60 to 100

実装完了しました。
クローズします。

Also available in: Atom PDF