owned this note changed 5 years ago
Linked with GitHub

用 Google Apps Script 挑戰輕鬆 RPA,工作雜事自動化,實踐辦公室的,構!造!改!革! - Adrian Wu

tags: COSCUP2020 入門 TR212

歡迎來到 https://hackmd.io/@coscup/2020 共筆

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

點擊本頁上方的 開始用 Markdown 一起寫筆記!
手機版請點選上方 按鈕展開議程列表。

請從這裡開始

大綱

  • RPA 概念與自動化
  • GAS優勢
  • 開發案例
  • 活用
  • GAS的坑

簡報檔案 -> 這裏

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Now that's what I call a Hacker

RPA 概念與自動化

  • 「懶惰的工程師,才是好的工程師」
  • RPA[robotic process automation] 流程機器人->自動化執行daily routine的程式

GAS優勢:

  • GAS解決通點:開發部署成本很快,不需:自己架設伺服器、自己處理環境、改DB schema等等
  • GAS內建串接所有google服務(eg.: spreadsheet, docs, ppt, analysis, gmail, etc)
  • 無需處理Server side
  • 可以透過spreadsheet儲存
  • 連動google服務、G Suit,包括android的簡訊等等
  • 有trigger功能,可設定執行的時間
  • 大抵上免費

GAS開發案例

  • 股票分析服務
  • 廣告服務自動化報表

GAS活用

  • GAS 在同一trigger中連續 urlfetch 會有6-7組ip自動切換(避免ip被block)
  • 可以使用clasp做local development
  • 可以搭配Glide App做網頁給別人用

GAS的坑

  • 執行速度不快,因叫動google服務會需要時間
  • 六分鐘執行限制(如有有用gsuite可以調整為30分鐘)
    • solutions:
      • 統一 R/W,調動service等等
      • 任務拆分,動用多個trigger(垂直、平行拆分),運用cache service、text file 做中繼資料
  • urlfetchapp 不能改user agent
  • 沒有驗證過的GAS給gmail結尾的帳號執行可能會無法執行GAS(用gsuite可以解決)
  • 網頁Logger輸出速度不快
  • time trigger的觸發時間很浮動
  • 原因不明(神奇的)Error
    • 超出error handling的範圍,會需要多支trigger並行方式解決
    • 設定錯誤通知(寄email通知)
Select a repo