Skip to content

Instantly share code, notes, and snippets.

@siyo
Created November 14, 2011 10:21
Show Gist options
  • Save siyo/1363679 to your computer and use it in GitHub Desktop.
Save siyo/1363679 to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
require 'rss'
Earthquake.init do
command :pentax do
RSS::Parser.parse(open('http://twitter.com/statuses/user_timeline/grdiv.rss'){|f|f.read},false).items.each{|i|
twitter.retweet(i.guid.to_s.scan(/\d+/)[0])
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment