Sha256: c5de73521f86363f0e2e2a708bf572c56793ca093479e819122b7da273cb2793
Contents?: true
Size: 256 Bytes
Versions: 25
Compression:
Stored size: 256 Bytes
Contents
require 'sneakers' require 'open-uri' require 'nokogiri' class TitleScraper include Sneakers::Worker from_queue 'downloads' def work(msg) doc = Nokogiri::HTML(open(msg)) worker_trace "FOUND <#{doc.css('title').text}>" ack! end end
Version data entries
25 entries across 25 versions & 2 rubygems