feed_crawler/storage.rb
#simple output to an html file
simple output to an html file
simple output to an html file
def store_article(author, link, headline, content, clean_content, newsservice)
      begin        
        fh = File.new("#{newsservice}.html", "w")
        fh.write( @template.result(binding) )
        fh.close()
      rescue Exception => ex
        Log4r::Logger['main'].error "Could not save article: #{ex.message}"
      end
    end
def store_article ( author , link , headline , content , clean_content , newsservice ) begin fh = File . new ( "#{newsservice}.html" , "w" ) fh . write ( @template . result ( binding ) ) fh . close ( ) rescue Exception => ex Log4r :: Logger [ 'main' ] . error "Could not save article: #{ex.message}" end end
simple output to an html file
simple output to an html file
author
<not_specific>
link
<not_specific>
headline
<not_specific>
content
<not_specific>
clean_content
<not_specific>
newsservice
<not_specific>