module MrYahooFinance::Builder::Html

Public Class Methods

row_html(path) click to toggle source
# File lib/mr_yahoo_finance/builder/html.rb, line 9
def row_html(path)
  begin
    Nokogiri::HTML(open(path))
  rescue Net::HTTPError
  end
end
target_table_tr(html) { |tr| ... } click to toggle source
# File lib/mr_yahoo_finance/builder/html.rb, line 16
def target_table_tr(html)
  html.css('table.yfnc_tabledata1 > tr > td > table > tr'){|tr| yield tr }
end