search for: offensive_rush

Displaying 2 results from an estimated 2 matches for "offensive_rush".

2009 Jun 07
17
ActiveRecord Classes
...update_all(:name => @rows[i][0], :games => @rows[i][1]) puts "Updating Team Name = #{@rows[i][0]}." end end end The scraper.rake file contains: desc "This task will parse data from ncaa.org and upload the data to our db" task :scraper => :environment do offensive_rushing = Scraper.new(''http://web1.ncaa.org/mfb/natlRank.jsp?year=2008&rpt=IA_teamrush&site=org'', ''table'', ''statstable'', ''//tr'') offensive_rushing.scrape_data offensive_rushing.clean_celldata offensive_rushing.prin...
2009 Jun 06
5
Rake Tasks
...umrows}." for i in 0..@numrows-1 puts @rows[i].join('', '') end end end # In our search we are supplying the website url to parse, the type of element (ex: table), the class name of that element # and the child element that contains the data we wish to retrieve. offensive_rushing = Scraper.new(''http://web1.ncaa.org/mfb/natlRank.jsp?year=2008&rpt=IA_teamrush&site=org'', ''table'', ''statstable'', ''//tr'') offensive_rushing.scrape_data offensive_rushing.clean_celldata offensive_rushing.print_va...