开发者

detect when a webpage is updated

开发者 https://www.devze.com 2022-12-28 17:14 出处:网络
There is a website (very simple) which will be updated soon and I\'d like to receive an alert at the moment it changes (like a sound, a popup,...)

There is a website (very simple) which will be updated soon and I'd like to receive an alert at the moment it changes (like a sound, a popup,...)

I guess I should send开发者_开发技巧 request every x minutes and compare the result with what's now but I don't know how to do that.

I don't really care about the language used, I know java, python, php, a bit of c and bash (I'm on linux)...

Thank you


An easy way to do it would be to combine wget and cmp with a loop in bash. When the files differ you could use sendmail to throw yourself an email.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号