Skip to content

Instantly share code, notes, and snippets.

@soh335
Created November 11, 2011 04:48
Show Gist options
  • Save soh335/1357221 to your computer and use it in GitHub Desktop.
Save soh335/1357221 to your computer and use it in GitHub Desktop.
require 'mechanize';
agent = Mechanize.new;
page = agent.get("http://ekikara.jp/newdata/state/station/13-01.htm");
page.search("span.textBold").each do |a|
puts a.inner_text
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment