Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

download all Tweets using ruby

View twitter_user_timeline_search.rb
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.