Forked from wrburgess/import_and_parse_remote_csv_rails.md
Created
May 31, 2018 18:00
-
-
Save viktor-evdokimov/7c20f1f5c1ea9f2a0a85c014d55632c7 to your computer and use it in GitHub Desktop.
Revisions
-
wrburgess created this gist
Nov 3, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ ``` require 'csv' require 'open-uri' csv_text = open('http://www.vvv.hh.yyy.ggg/~hhhh/uuuu.csv') csv = CSV.parse(csv_text, :headers=>true) csv.each do |row| puts row end ``` ref: http://stackoverflow.com/questions/11426475/this-code-is-able-to-read-a-csv-file-from-file-system-but-what-about-reading-fro