Skip to content

Instantly share code, notes, and snippets.

@joffilyfe
Created November 9, 2015 14:23
Show Gist options
  • Save joffilyfe/38fa35d8d53a9431f383 to your computer and use it in GitHub Desktop.
Save joffilyfe/38fa35d8d53a9431f383 to your computer and use it in GitHub Desktop.
require('json')
file = File.read('data.json')
data = JSON.parse(file)
data.each_with_index do |tweet, i|
user = tweet['user']
user_name = user['name']
user_screen_name = user['screen_name']
puts "#{i} - Nome: #{user_name}, @#{user_screen_name}."
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment