class AmazonDeets::MechanizedFragment

Amazon renders different HTML dependending upon the type of product that you are viewing. This means that the scraper queries need to change depending upon whether you want the data for a Kindle book or some general merchandise. Rather than building one super-complicated scraper, we’ll break the code into multiple simple scrapers that focus on solving specific problems.

Public Instance Methods

applicable?(agent) click to toggle source

Decides whether or not this MechanizedFragment is applicable

# File lib/amazon_deets/core.rb, line 55
def applicable?(agent)
  raise NotImplementedError
end
scrape(agent) click to toggle source
# File lib/amazon_deets/core.rb, line 59
def scrape(agent)
  raise NotImplementedError
end