Skip to content

Instantly share code, notes, and snippets.

@yy
Created October 28, 2017 21:32
Show Gist options
  • Save yy/beae895de6df21e0873d2ef71df5ad0b to your computer and use it in GitHub Desktop.
Save yy/beae895de6df21e0873d2ef71df5ad0b to your computer and use it in GitHub Desktop.
A quick and dirty zsh script for checking availability of a Lego set. (uses Mac automation script for notification)
while true; do lynx --dump "https://shop.lego.com/en-US/LEGO-NASA-Apollo-Saturn-V-21309" | grep "Available now" && osascript -e 'display notification "Lego set available!" with title "Lego alert!!"'; sleep 60; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment