Skip to content

Instantly share code, notes, and snippets.

@ybart
Created June 12, 2011 22:40
Show Gist options
  • Save ybart/1022069 to your computer and use it in GitHub Desktop.
Save ybart/1022069 to your computer and use it in GitHub Desktop.
doc = Nokogiri::HTML(open('http://www.nolife-tv.com/resultats_j-top'))
data = doc.css('.TBnl tr').collect{|r| r.css('td').collect{|d| d.content}}
File.open('test.out', 'w') { |out|
data.each {|row| out.puts row.inspect }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment