Skip to content

Instantly share code, notes, and snippets.

@sferik
Created March 24, 2011 21:42
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sferik/885957 to your computer and use it in GitHub Desktop.
Save sferik/885957 to your computer and use it in GitHub Desktop.
require 'twitter'
user = "sferik"
query = /rimm/i
(1..16).each do |page|
Twitter.user_timeline(user, :page => page, :count => 200).each do |tweet|
puts tweet.id.to_s + ": " + tweet.text if query.match(tweet.text)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment