thp / urlwatch

Watch (parts of) webpages and get notified when something changes via e-mail, on your phone or via other means. Highly configurable.
https://thp.io/2008/urlwatch/
Other
2.81k stars 352 forks source link

Feature request: get notified if an http code changes #717

Open ari-picker opened 2 years ago

ari-picker commented 2 years ago

Right now, the only options are to be notified of the error every update, or ignore them. Among the sites that I follow are a few stores that will close for a day or two before they add new products and I want to find out when the store goes down and back up without being constantly alerted while it's down.

thp commented 1 year ago

If there's a HTTP status code, you can use the command watcher with a URL like this:

curl -s -I https://example.org | head -n1