Sha256: dca015184e33e17f1ffeda67c3e64ee7a1fc94eb7ad7cd3dc19068a90bd42e3b
Contents?: true
Size: 496 Bytes
Versions: 1
Compression:
Stored size: 496 Bytes
Contents
require_relative "jkl/rss_client" require_relative "jkl/text_client" require "mechanize" require "term-extract" module Jkl class << self def get(url) agent = Mechanize.new agent.get(url).body end def links(feed) links = Jkl::Rss::links(Jkl::Rss::items(Jkl::get(feed))) links.each do |link| yield link if block_given? end end def tags(text) TermExtract.extract(text.force_encoding("UTF-8")).keys end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jakal-0.2.1 | lib/jkl.rb |