Created
March 31, 2013 16:43
-
-
Save rd13/5281231 to your computer and use it in GitHub Desktop.
Nokogiri / Rails - Parse currency conversion rates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doc = Nokogiri::HTML(open("http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml")) | |
doc.remove_namespaces! | |
doc.xpath("//Cube/Cube/Cube").each do |node| | |
puts node.attr("rate") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment