Sha256: c66a437544f254fdd92c97c573774d2778d731cbef2cac81540f9a7c8234bbe0
Contents?: true
Size: 189 Bytes
Versions: 3
Compression:
Stored size: 189 Bytes
Contents
require 'mechanize' require 'uri' module Scrapers def self.agent() @agent ||= Mechanize.new end def self.base_url(url) u = URI.parse(url) u.path='' u.to_s end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
scrapers-3.2.0 | lib/scrapers.rb |
scrapers-3.1.0 | lib/scrapers.rb |
scrapers-3.0.0 | lib/scrapers.rb |