daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. require 'twitter'
  2.  
  3. client = Twitter::REST::Client.new do |config|
  4.   # Set key/token
  5.   config.consumer_key = ''
  6.   config.consumer_secret = ''
  7.   config.access_token = ''
  8.   config.access_token_secret = ''
  9. end
  10.  
  11. trends = client.trends(23424856, {:exclude=>"hashtags"}) #23424856=>Japan
  12. ret = ""
  13. trends.each do |t|
  14.    ret += "#{t.name},"
  15. end
  16. print ret.chop
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top