Sha256: d938a2bdb23ca8def41dd29bf5b489dff4fb1ea3621c0fbd01c7ab31a807181e
Contents?: true
Size: 319 Bytes
Versions: 4
Compression:
Stored size: 319 Bytes
Contents
module Crags module Fetcher def fetch_doc(url) Hpricot.parse(fetch_html(url)) end def fetch_html(url) req = fetch_request(url) req.body_str end def fetch_request(url) req = Curl::Easy.new(url) req.follow_location = true req.perform req end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
crags-2.1.2 | lib/crags/fetcher.rb |
crags-2.1.1 | lib/crags/fetcher.rb |
crags-2.1.0 | lib/crags/fetcher.rb |
crags-2.0.0 | lib/crags/fetcher.rb |