Sha256: 6a7ca6b015ec9d6db03ba3aa89143f6d914034055488732444ddae793d5b6b89
Contents?: true
Size: 624 Bytes
Versions: 1
Compression:
Stored size: 624 Bytes
Contents
require 'cgi' require 'jkl/rest_client.rb' require 'jkl/rss_client.rb' require 'jkl/calais_client.rb' require 'jkl/url_doc_handler.rb' module Jkl def headlines(keyphrase) get_from_as_xml "#{YAML::load_file('config/config.yml')['topix']}#{CGI::escape(keyphrase)}" end def pages(headlines) items = get_items_from headlines descriptions = "" items.each do |item| descriptions << attribute_from(item, :description).gsub("<![CDATA[",'').gsub("]]>",'') end descriptions end def tags(pages) cal_response = get_from_calais(pages) get_calais_metadata(cal_response) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sshingler-jkl-0.0.6 | lib/jkl.rb |