Sha256: 630da233733e3b5d8cc215f95dcc9d2573728595f4bd858fb8987f9ded2b4c42
Contents?: true
Size: 317 Bytes
Versions: 3
Compression:
Stored size: 317 Bytes
Contents
module Crags module Fetch 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
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
gotascii-crags-1.4.9 | lib/crags/fetch.rb |
crags-1.6.0 | lib/crags/fetch.rb |
crags-1.5.9 | lib/crags/fetch.rb |