Skip to content

Instantly share code, notes, and snippets.

@venj
Created December 22, 2015 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save venj/85e6fd72b45c9e229642 to your computer and use it in GitHub Desktop.
Save venj/85e6fd72b45c9e229642 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'twitter'
require 'open-uri'
require 'open_uri_redirections'
client = Twitter::REST::Client.new do |config|
config.consumer_key = "riOPILJqG0AtzB8x7hiqRA"
config.consumer_secret = "uBlaPxB3QONvCyvvq78CY9UjpHYdxYdeEb0d1QAaU"
config.access_token = "191735866-EHC4Xbf5O6fSu62CI72Hk1PPQ6d0Jn81sMWkWF9p"
config.access_token_secret = "y14BTufUM9oXirIVUfhipgrMg9WJFF0qnbN3nvxWo"
end
(1..10).each do |page|
client.user_timeline('lsmjoy', page: page).each do |twit|
uri = twit.full_text
puts uri
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment