Skip to content

Instantly share code, notes, and snippets.

@akahn
Created December 27, 2008 02:18
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 akahn/40178 to your computer and use it in GitHub Desktop.
Save akahn/40178 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'scrubyt'
photos = Scrubyt::Extractor.define :agent => :firefox do
fetch 'http://alexanderkahn.deviantart.com/gallery'
link_title "//a[@class='t']", :write_text => true do
link 'href', :type => :attribute
end
end
p photos.to_hash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment