class HofStats::Scraper
Public Instance Methods
get_page()
click to toggle source
# File lib/hof_stats/scraper.rb, line 3 def get_page Nokogiri::HTML(open("https://www.baseball-reference.com/awards/hof.shtml")) end
make_player()
click to toggle source
# File lib/hof_stats/scraper.rb, line 11 def make_player scrape_baseball_index.each do |p| HofStats::Player.new_from_index(p) end end
scrape_baseball_index()
click to toggle source
# File lib/hof_stats/scraper.rb, line 7 def scrape_baseball_index self.get_page.css("tbody tr") end