I'm wanting to add specific Websites to notification center (the stack exchange network, for example) and I want to be able to see various notifications that the website would send me.

Is there a way to add a website to be checked in notification center via terminal or some sort of script that can be written?

2 Answers 2


You can send a notification from the command line with this terminal-notifier utility. Getting the notification data off a site can be fairly involved, requires at least some decent scripting and/or web coding knowledge, and is probably a better question to pose on Stack Overflow.

The basic outline of such a script would be:

  • Open a site
  • Send login data if necessary
  • Scrape the page for the data you need (unless you're lucky and the site has a JSON or XML API, in which case you can parse that)
  • Send the appropriate data via the terminal-notify utility

This sort of thing may be more common in the future though, as Safari 6 and Mountsin Lion add support for web notifications, which will allow a site to display notifications, when Safari has an open tab for that site.

Support for this needs to be coded into the site however, so it's not really an end user solution I'm afraid.

  • Ok this is helpful. Now I just need to figure out how to write a quick program to run in the background and check for new notifications every minute or so. Hmmm... Aug 25, 2012 at 3:48

If you dont’t want to script anything, try this little menu bar application called SENotifier. I use it for all notifications related to the StackExchange network.

Also, it might me a good idea to first check if the website in question has a RSS feed for the notifications you want.

In case you want to write a scraper, first have a look at possible options regarding languages and modules. I personally have used WWW::Mechanize with Perl, and loved Nokogiri with Ruby.

  • This combined with Hiss is doing what I originally set out to do. Thanks! Aug 25, 2012 at 16:20
  • You are welcome! Shameless plug: If you find this answer useful, please consider marking this answer as 'accepted'. Thanks!
    – myhd
    Aug 25, 2012 at 18:27
  • I think I might, but CanuckSkier's answer is more general and I might need to create a generalized app for other sites in the future. Aug 25, 2012 at 18:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .