class WikipediaScraper < Maxwell::Base attr_accessor :title, :image_urls # attributes which you want to get # You need to define 2 methods # parser ... define how to parse attributes from html. # handler ... define what to do with result which is come from parser. def parser(html) # html is Nokogiri::HTML::Document object @title = html.css('title').text # Ruby - Wikipedia @image_urls = html.css('i