Sha256: 418043f3375c4b0d9cb39029d82bc12ce5698c4a77042d40e8e98a80aad5eeb0

Contents?: true

Size: 413 Bytes

Versions: 1

Compression:

Stored size: 413 Bytes

Contents

require 'open-uri'
require 'nokogiri'

module MrYahooFinance
  module Builder
    module Html

      class << self
        def row_html(path)
          begin
            Nokogiri::HTML(open(path))
          rescue Net::HTTPError
          end
        end

        def target_table_tr(html)
          html.css('table.yfnc_tabledata1 > tr > td > table > tr'){|tr| yield tr }
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mr_yahoo_finance-0.1.0 lib/mr_yahoo_finance/builder/html.rb