Skip to content

Instantly share code, notes, and snippets.

Created January 5, 2013 23:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4464342 to your computer and use it in GitHub Desktop.
Save anonymous/4464342 to your computer and use it in GitHub Desktop.
require 'redis'
require 'json'
require 'time'
r = Redis.new
r.lrange('feedl', 0, -1).each do |item|
item = JSON.parse item
if item['type'] == 'twitter'
p "#{item['d_id']} #{Time.parse(item['time'])} #{Time.parse(item['time']).getlocal} #{item['data']['content']}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment