Giter Club home page Giter Club logo

twitter-notification-on-line's Introduction

[GAS] twitter-notification-on-line

特定のユーザに関するTwitterデータの通知・保存を行うアプリケーション

motivation

  • ツイ消しがあってもツイート内容を閲覧可能にしたい
  • ワード検索結果をTwitterアプリを起動せずに確認したい
  • いいねや新規フォローからアクティブ状態であることを把握したい
  • プロフィールの変更にいち早く気づきたい

機能

  • プロフィール・ヘッダー画像の更新とその内容をLINEに通知し、画像データをGoogleDriveに保存
  • bioの更新とその内容をLINEに通知し、Googleスプレッドシートに記録
  • 新規ツイートの内容をLINEに通知し、Googleスプレッドシートに記録。画像や動画が添付されている場合はGoogleDriveに保存
  • 新規いいねの内容をLINEに通知
  • 新規フォローの内容をLINEに通知
  • 特定の検索結果の内容をLINEに通知し、Googleスプレッドシートに記録
  • 特定のユーザのフォロー、フォロワー、いいね数の遷移を、毎日0時にスプレッドシートに保存しグラフ化

依存関係

  • GASライブラリ
    • OAuth1
  • API
    • Twitter API
    • LINE Notify API

GASの設定

  • OAuth1ライブラリを追加
  • プロジェクトのプロパティに以下を追加
    • PROJECT_KEY: GASスクリプトID
      (GAS編集画面のURLに記載https://script.google.com/d/[GASスクリプトID]/edit)
    • API_KEY: Twitter API Key
    • API_SECRET: Twitter API Secret
    • LINE_CHANNEL_ACCESS_TOKEN: LINE Notifyアクセストークン
  • TwitterNotification#updateTimeline: SCREEN_NAMEで指定したユーザーの最初のツイートのIDを指定

TwitterAPIの設定

  • Authentication settings > Callback URLsを指定
    • https://script.google.com/macros/d/[GASスクリプトID]/usercallback callbaclurl
  • App permissions > Read and Writeに設定

twitter-notification-on-line's People

Contributors

weldar0616 avatar

Stargazers

 avatar

Watchers

 avatar

twitter-notification-on-line's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.