Sha256: a0c69d17f03a72c37005476c00ac3e623ae92c43e2846864601ae4a0a51e68ec
Contents?: true
Size: 607 Bytes
Versions: 1
Compression:
Stored size: 607 Bytes
Contents
require 'lib/rest_client.rb' require 'lib/rss_client.rb' require 'lib/calais_client.rb' require 'lib/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_tag_from_json(cal_response) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sshingler-jkl-0.0.2 | lib/jkl_client.rb |