Sha256: 430609c1523dd8462cffdf91c4a2ebb326825f1cc7e87ac409bc2bbf6e67de92
Contents?: true
Size: 346 Bytes
Versions: 4
Compression:
Stored size: 346 Bytes
Contents
class HofStats::Scraper def get_page Nokogiri::HTML(open("https://www.baseball-reference.com/awards/hof.shtml")) end def scrape_baseball_index self.get_page.css("tbody tr") end def make_player scrape_baseball_index.each do |p| HofStats::Player.new_from_index(p) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hof_stats-0.1.4 | lib/hof_stats/scraper.rb |
hof_stats-0.1.3 | lib/hof_stats/scraper.rb |
hof_stats-0.1.2 | lib/hof_stats/scraper.rb |
hof_stats-0.1.1 | lib/hof_stats/scraper.rb |