Skip to content

Instantly share code, notes, and snippets.

@ldodds
Created February 18, 2013 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ldodds/4976606 to your computer and use it in GitHub Desktop.
Save ldodds/4976606 to your computer and use it in GitHub Desktop.
Is the Nexus 10 32gb in stock yet?
# Generate a system notification on the current product status of the Google Nexus 10 32gb
#
# Uses notify-send to generate notification
# hxnormalize and hxselect are from html-xml-utils package on ubuntu
# hxnormalize: tidy up HTML
# hxselect: use CSS selector to extract element content from well-formed XML
# Added to my crontab so I don't have to keep manually checking
#
notify-send "Nexus 10 32gb Status" "`hxnormalize -x -l 240 https://play.google.com/store/devices/details?id=nexus_10_32gb 2>/dev/null | hxselect -c ".hardware-price-description"`"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment