lib/twss/tweet_collector.rb in twss-0.0.2 vs lib/twss/tweet_collector.rb in twss-0.0.3
- old
+ new
@@ -12,10 +12,10 @@
def run
o = File.open(filename, 'a')
page, per_page = 1, 100
begin
- Twitter::Search.new(search).per_page(per_page).page(page).each do |tweet|
+ Twitter::Search.new.containing(search).per_page(per_page).page(page).each do |tweet|
puts tweet.text
o.puts tweet.text
end
page += 1
sleep 2