class AmazonDeets::MechanizedContext

A MechanizedContext is similar to a scraper, but it assumes that the @agent has already navigated to the URL that is going to be scraped.

Attributes

agent[RW]

Public Class Methods

new(agent: Mechanized.new) click to toggle source
# File lib/amazon_deets/core.rb, line 73
def initialize(agent: Mechanized.new)
  @agent = agent
end

Public Instance Methods

scrape() click to toggle source
# File lib/amazon_deets/core.rb, line 78
def scrape
  raise NotImplementedError
end