Created
October 28, 2017 21:32
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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