Skip to content

Instantly share code, notes, and snippets.

@rtanglao
Last active March 28, 2021 05:36
Show Gist options
  • Select an option

  • Save rtanglao/8a8eb580c8ec7656c653db904b7cfea3 to your computer and use it in GitHub Desktop.

Select an option

Save rtanglao/8a8eb580c8ec7656c653db904b7cfea3 to your computer and use it in GitHub Desktop.
def read(url)
CSV.new(URI.open(url), :headers => :first_row).each do |line|
ap line
end
end
CSV.foreach(URI.open(url), headers: true) do |row|
ap row
end
@rtanglao
Copy link
Author

url='https://www.dropbox.com/s/llkaiznbfpm85lt/2020-and-2019-roland-flickr-metadata.csv?dl=1'
read(url)

@rtanglao
Copy link
Author

rtanglao commented Mar 28, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment