透過自動偵查讓 591 租屋網, 讓你租房不再慢人一步 自動推 LineNotify 讓你馬上知道第一手租屋消息
npm install
-
打開
開發人員工具
-
找到
network
找到XHR
-
找出 Header 中的
URL
-
申請 Line Notify Token 連結
-
設定
.env
LINE_NOTIFY_TOKENS = // the line notify token whitch you apply, example: ["123","456"] TARGET_URL = // the url whitch you get from 591 REQUEST_FREQUENCY = // at least 1000 PORT = // 5000 ENABLE_CHECK_SERVICE_STATUS = // true or false CHECK_SERVICE_STATUS_URL = // <https://<app_name>.herokuapp.com> ENABLE_SUBWAY_STATION_FILTER = // enable filter distance of subway station, true or false SUBWAY_STATION_FILTER = // array of subway station filter, example: ["古亭站","公館站","景美站","東門站"] SUBWAY_STATION_FILTER_DISTANCE = // distance of subway station (m)
REQUEST_FREQUENCY 單位為毫秒,所以一秒就是
1000
,建議不要調太低。
npm run start
or
node app.js
Then ... Enjoy it !
heroku 分支可以部署到 heroku 就不用自己在 local run
有問題的話請聯絡我: email: zrobin8741@gmail.com