Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Did something similar to check availability of a special deal by my ISP.

No need to write code, you only need a shell account on a box somewhere. Put a line like this in your crontab:

    20 9,12,15,18,21 * * * curl -s http://example.com/special-deal-page | grep 'something that needs to appear on the page' | mailx -E -s "it's happening!1!" $MAILTO
This will check every three hours during daytime (which is what I wanted). "mailx -E" will only send an email if the input is not empty. Don't forget to define MAILTO and to test the contraption.


This is pretty much exactly how my https://github.com/lamby/gumtree-sniper works


Pretty concise. I needed a loud phonecall, so used twilio free developer account for that.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: