Hey,
I''m trying to work with Scrubyt using one of the examples:
#simple google example
require ''rubygems''
require ''scrubyt''
@data = Scrubyt::Extractor.define do
fetch ''http://www.google.com/''
fill_textfield ''q'', ''ipod''
submit
record "//ol[@id=''rso'']" do
name
"//li[@class=''g'']/h3[@class=r]/a[@class=l]"
end
end
And I get an error on line 10 which is the fill_textfield one:
(eval):1:in `fill_textfield'': You have a nil object when you
didn''t
expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.[]
Does anyone know why it''s not working?
--
Posted via http://www.ruby-forum.com/.