Skip to content

Instantly share code, notes, and snippets.

View stephenjudkins's full-sized avatar

Stephen Judkins stephenjudkins

View GitHub Profile
require 'csspool'
require 'pp'
site = Scraper.scrape "http://www.aboutus.org"
doc = site.front_page.doc
style = RealInternet.get('http://www.aboutus.org/support/style.css').body
sac = CSS::SAC::Parser.new
css = sac.parse(style)
a = doc.search("a.logo").first
Hello world!