Sha256: 0d6aaef83e8eb65bd73e4c3bd5742c48be3f7b582f8bea3185edc88de12e0cf3
Contents?: true
Size: 322 Bytes
Versions: 3
Compression:
Stored size: 322 Bytes
Contents
module Crags module Fetch def fetch_doc(url) Hpricot.parse(fetch_html(url)) end def fetch_html(url) req = Curl::Easy.perform(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 & 1 rubygems
Version | Path |
---|---|
gotascii-crags-1.4.4 | lib/crags/fetch.rb |
gotascii-crags-1.4.5 | lib/crags/fetch.rb |
gotascii-crags-1.4.6 | lib/crags/fetch.rb |