Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
download all Tweets using ruby
#!/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.text if query.match(tweet.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment