Closed sathish316 closed 11 years ago
find by id returns same content as find all.
find by id should optionally crawl detailed pages and return more content
Example:
class IMDB include Scrapify::Base html "http://imdb.com/top250" attribute :rank, css: ".rank" attribute :title, css: ".title attribute :url, xpath: "//a[@class='movie']/@href" crawl using: url do |page| page.attribute :release_date, css: ".release_date" page.attribute :storyline, css: ".storyline" page.attribute :full_cast, css: ".full_cast" {|e| e.children.css('.name').map(&:value)} end end
find by id returns same content as find all.
find by id should optionally crawl detailed pages and return more content
Example: