How to fetch the contents of meta name="description" content="....." with Scrubyt ?
require 'rubygems'
require 'scrubyt'
data = Scrubyt::Extractor.define do
fetch 'http://www.allegro.pl/'
head '//head' do
description '//meta[@name="description"]'
end
end
puts data.to_xml
What is the the correct way ?