Skip to content

zephyrxvxx7/rentHouse

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rent House

透過自動偵查讓 591 租屋網, 讓你租房不再慢人一步 自動推 LineNotify 讓你馬上知道第一手租屋消息

Install

npm install

Configuration

  1. 打開開發人員工具

  2. 找到 network 找到 XHR

  3. 去 591 租屋網設定你想要關注的設定

  4. 抓到我們要的資料

  5. 找出 Header 中的 URL

    • URL
  6. 申請 Line Notify Token 連結

  7. 設定 .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,建議不要調太低。

Run

npm run start
or
node app.js

Then ... Enjoy it !

Note

heroku 分支可以部署到 heroku 就不用自己在 local run

有問題的話請聯絡我: email: zrobin8741@gmail.com

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%