Guest User

Untitled

a guest
Jul 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. require 'rubygems'
  2. require 'twitter_search'
  3.  
  4. client = TwitterSearch::Client.new('fudge')
  5. ids = []
  6.  
  7. loop do
  8. client.query('#BST').each do |tweet|
  9. unless ids.include?(tweet.id)
  10. str = tweet.text
  11. ids << tweet.id
  12. `say #{str}`
  13. sleep 3
  14. end
  15. end
  16. end
Add Comment
Please, Sign In to add comment