-
-
Save jm3/893897 to your computer and use it in GitHub Desktop.
download all Tweets using ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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