โปรแกรมแจ้งเตือนโพสประกาศเช่าคอนโด จากเว็บ https://www.renthub.in.th/
- แจ้งเตือนผ่าน Line Notify
- รันที่ไหนก็ได้
- เขียนด้วย Go และ Compile เป็น exec file
- Database เก็บเป็นไฟล์
ไฟล์ config.yaml
แก้ your line notify token
เป็น line token
token: "your line notify token"
ไฟล์ config.yaml
แก้ link
เป็น url ที่คุณต้องการ
renthub:
link: [
"https://www.renthub.in.th/search/condo_filter?search_price=monthly&condo_monthly_price%5Bprice_range_2%5D=1&temp%5Bzone_id%5D=115&locale=th"
]
ถ้าต้องการรันเทส
$ ./ndb.run skip
ถ้าต้องการใช้รัน Notify
$ ./ndb.run noskip
ใส่ crontab เพื่อให้โปรแกรมรันทุกๆ 10 นาที
*/10 * * * * /home/kreang/nbd.run onskip