Skip to content

Instantly share code, notes, and snippets.

@cesare
Created March 19, 2012 14:53
Show Gist options
  • Save cesare/2115140 to your computer and use it in GitHub Desktop.
Save cesare/2115140 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'open-uri'
require 'nokogiri'
require 'growl'
doc = Nokogiri::HTML(open("http://shop.github.com/products/octodex-sticker-pack"))
if doc.css('#puchase-form .sold-out').empty?
Growl.notify do |n|
n.message = 'Octodex Sticker Packs are back!'
n.sticky!
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment