
利用自如/链家网页版查询房源,解析HTML并分析房源,找到新上架房源并推送至钉钉群。
taskInterval控制需自行编译(参考Golang交叉编译)。使用命令可参考:robot --help,查看提示信息。
(base) ┌─[uzdz@uzdz] - [~/work/golang/rooms-inspect-robot] - [Tue Jul 27, 11:10]
└─[$] <git:(master*)> go run main.go --help ─╯
usage: main [<flags>] [<url>...]
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
-p, --notice="ding" 消息通知平台:ding(钉钉)、fs(飞书)
-u, --noticeUrl=NOTICEURL 消息通知接口地址
-k, --noticeKey="Home" 消息通知授权KEY(白名单)
-t, --taskInterval=300 任务周期间隔时长,单位:秒
Args:
[<url>] 自如/链家网页版房源请求地址,支持录入多地址,多个地址通过`空格`分隔。
以下进行举例:
./robot --notice=ding --noticeUrl='https://oapi.dingtalk.com/robot/send?access_token=xxx' --noticeKey=xxx 'https://www.ziroom.com/z/z2-s100011-r0/?p=x1|14&cp=3000TO5000&isOpen=1' 'https://bj.lianjia.com/ditiezufang/li651/ie1su1rt200600000001rp4/?showMore=1'
