public

download all Tweets using ruby

  • Download Gist
twitter_user_timeline_search.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11
#!/usr/bin/env ruby
require 'twitter'
 
user = "bongs"
query = /dongs/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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.