Created
March 28, 2011 10:23
-
-
Save AJFaraday/890249 to your computer and use it in GitHub Desktop.
Bieber wedding proposals
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
require 'rubygems' | |
require 'twitter' | |
search = Twitter::Search.new | |
i = 0 | |
search.containing("marry me").to("justinbieber").each do |r| | |
puts "#{r.from_user}: #{r.text}" | |
i += 1 | |
end | |
puts i | |
search.clear |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment