class FinancialDataPull::Scraper

Public Class Methods

scrape(ticker) click to toggle source
# File lib/financial_data_pull/scraper.rb, line 4
def self.scrape(ticker)
  
  website = Nokogiri::HTML(open("http://finance.yahoo.com/q?s=#{ticker}&ql=1"))
  FinancialDataPull::Stock.new_from_scrape(website)
  
end