Skip to content

Instantly share code, notes, and snippets.

@june29
Created January 17, 2009 13:12
Show Gist options
  • Save june29/48341 to your computer and use it in GitHub Desktop.
Save june29/48341 to your computer and use it in GitHub Desktop.
require "rubygems"
require "nokogiri"
require "open-uri"
require "shell"
doc = Nokogiri::HTML(open("http://www.stylegala.com/features/bulletmadness/"))
sh = Shell.new
doc.xpath("//ul[@class='bulletlist']/li/img").each do |img|
src = img.attributes["src"].gsub(" ", "%20")
sh.system("wget", src)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment