mos icon indicating copy to clipboard operation
mos copied to clipboard

[idea] Deadyet++?

Open gaocegege opened this issue 9 years ago • 10 comments

\cc @dyweb/mos

idea issuer: @arrowrowe & @mrmiywj

gaocegege avatar Oct 30 '16 01:10 gaocegege

ref Dead Yet?, 监控指定页面是否 http status 200 来围观 startup 是否存活.

@arrowrowe: 昨天想搞个机器人... 每天去拜访一下 HackShanghai 主页看恢复了没...... @mrmiywj: hhhhhhhh good idea @arrowrowe: 比 deadyet 多个配置.. 只支持查关键词.. 用处蛮多的.. 可以看明天下不下雨...... 可以看某人今天或者最近一个月有没有发新状态.. 支持 %Y/%d/%m 之类的语法就行...... @mrmiywj: 噫... 我来写写看... @arrowrowe: 支持日期其实已经有很多用处了... 看各种东西有没有更新.. 要不要支持一点简单的表达式... 比如去某个榜单看某某是不是还是第一...... @mrmiywj: 有点复杂的吧... 涉及 NLP 的都不要管... @arrowrowe: 不用 NLP... 只要支持一个最简单的 parser 就行... match(/.../, '$1') == 'tourist' 这样... @mrmiywj: 也可以... @arrowrowe: 感觉加个正则又多了好多可能性...... @mrmiywj: 是的... @arrowrowe: 还挺好玩的... 还可以支持不同的输出.. 比如以指定参数调用 url... 就可以发提醒邮件或者 telegram 消息了...... @mrmiywj: 挖坑不填 ( @arrowrowe: 可以看某个 repo 最近一个月有没有提交............ is xxx stll 挖坑不填? 可以看东岳周报最近一期是不是拖稿超过了一周...... @mrmiywj: 先把初版搞出来吧...... @arrowrowe: 那啥.... 还能用来看 xx 是不是还在卖医疗广告...... 可以看某个 rss 有没有更新... 看某个范围内有没有超过一定烈度的地震... 看某人知乎粉丝有没有过万... 或者获赞数... @mrmiywj: 需要用户定制的规则有点复杂... @arrowrowe: 总结一下... 最基本的是必须 200, 否则直接否, 然后支持关键词和正则, 支持 %Y 之类转义, 然后可以比较字符串, 转换为数字比较大小, 感觉还好? @mrmiywj: 嗯... 主要是各种功能... 规则得自己写... @arrowrowe: 我们可以提供模板... 或者内置一些可以配置的函数... @mrmiywj: 嗯...

目测要求:

  1. 基础知识: http, 正则, 转义, parsing; 可以阅读英文文档.
  2. 有一门顺手的语言, Ruby / Python / Java / Node.js / ......
  3. Web 前后端基本技能.

arrowrowe avatar Oct 30 '16 07:10 arrowrowe

https://status.dy.tongqu.me ,直接扔 API 就好了。。

不过原来监控同去的程序挂了

ComMouse avatar Oct 30 '16 10:10 ComMouse

@ComMouse 可以先做个 api, 只支持 query. 不过感觉有个 Dead Yet? 那样的页面 (比如 http://isgoogle.deadyet.lol/), 自己定时跑, 会更好玩儿...

arrowrowe avatar Oct 30 '16 15:10 arrowrowe

@mrmiywj 我来写写看的意思是在写还是写了 readme

/w\

gaocegege avatar Oct 31 '16 03:10 gaocegege

做一个 IFTTT support on services without an API?

xplorld avatar Nov 28 '16 09:11 xplorld

IFTTT 不太满足需求,因为要定时

gaocegege avatar Nov 28 '16 14:11 gaocegege

while (wait(TIME_PEROID)) {
	resp = request(URL);
	if (resp.status != 200) {
		alert("dead!");
	}
	string data = resp.data;
	if (!re.matches(data)) {
		alert("tourist is no longer #1!");
	}
}

xplorld avatar Dec 04 '16 14:12 xplorld

re @xplorld 差不多就这样... 然后 re.matchesalert 可能需要复杂点......

arrowrowe avatar Dec 05 '16 06:12 arrowrowe

so? .w.

at15 avatar Jul 09 '17 00:07 at15

there are quite a few similar websites exist in the jungle.

xplorld avatar Mar 31 '18 06:03 xplorld