Sha256: 43d092100a5bb14a5668cf8e10ed434eb158e6268e27b872298163e96b92c99a

Contents?: true

Size: 223 Bytes

Versions: 4

Compression:

Stored size: 223 Bytes

Contents

require 'nokogiri'
require 'hashie'

module Caboodle
  def self.scrape url
    ::Nokogiri::HTML(Weary.get(url).perform_sleepily.body)
  end
  
  def self.mash req
    ::Hashie::Mash.new(req.perform_sleepily.parse)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
caboodle-0.2.12 lib/caboodle/scrape.rb
caboodle-0.2.11 lib/caboodle/scrape.rb
caboodle-0.2.10 lib/caboodle/scrape.rb
caboodle-0.2.9 lib/caboodle/scrape.rb