Skip to content

Instantly share code, notes, and snippets.

@eiel
Created November 24, 2012 21:59
Show Gist options
  • Save eiel/4141556 to your computer and use it in GitHub Desktop.
Save eiel/4141556 to your computer and use it in GitHub Desktop.
# encoding: utf-8
require 'rubygems'
require 'open-uri'
require 'nokogiri'
doc = Nokogiri::HTML(open("http://creofuga.net/"),nil,"utf-8")
open("foo.txt", "w") do |f|
doc.css("td").each do |td|
f.puts td.text
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment