Sha256: ec01b675b9c18a295a434d364dcd36fbcce2706c0bc2eaac319185270a4b2033
Contents?: true
Size: 467 Bytes
Versions: 1
Compression:
Stored size: 467 Bytes
Contents
require "lib/jkl/rss_client" require "lib/jkl/rest_client" require "lib/jkl/calais_client" require "lib/jkl/text_client" module Jkl class << self def links(feed) links = Jkl::Rss::links(Jkl::Rss::items(Jkl::get_xml_from(feed))) links.each do |link| yield link if block_given? end end def tags(key, link) text = Jkl::Text::sanitize(Jkl::get_from(link)) Jkl::Extraction::tags(key, text) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jakal-0.1.4 | lib/jkl.rb |